summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:19 +0000
committerfcolin2007-02-01 13:00:19 +0000
commit896c064fa646fb30d446aaf66567f81d7590f9e9 (patch)
treed95c9a7ec679a182bc76a0388e2ced645a5cea13 /Ivy/IvyApplication.cxx
parent66549353d2e6f98710579f6af961e2d10ec2b031 (diff)
downloadivy-cplusplus-896c064fa646fb30d446aaf66567f81d7590f9e9.zip
ivy-cplusplus-896c064fa646fb30d446aaf66567f81d7590f9e9.tar.gz
ivy-cplusplus-896c064fa646fb30d446aaf66567f81d7590f9e9.tar.bz2
ivy-cplusplus-896c064fa646fb30d446aaf66567f81d7590f9e9.tar.xz
Utilisateur : Fcolin Date : 16/11/05 Heure : 9:54 Archivé dans $/Bus/Ivy Commentaire: 64 bits ports (vss 26)
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index 6aa3668..5a50b96 100644
--- a/Ivy/IvyApplication.cxx
+++ b/Ivy/IvyApplication.cxx
@@ -118,7 +118,7 @@ void IvyApplication::OnReceive(char * line)
TRACE("Receive %s\n",line);
#endif //IVY_DEBUG
- err = sscanf( line ,"%d %d", &kind_of_msg, &id);
+ err = sscanf_s( line ,"%d %d", &kind_of_msg, &id);
arg = firstArg( line , ARG_START );
if ( (err != 2) || (arg == NULL) )
{
@@ -283,8 +283,8 @@ void IvyApplication::SendMsg(MsgType msg, int id, const char * arg)
{
char buffer[1024];
if ( arg )
- _snprintf( buffer, sizeof( buffer ), "%d %d" ARG_START "%s\n", msg, id, arg );
- else sprintf( buffer, "%d %d" ARG_START "\n", msg, id );
+ _snprintf_s( buffer, sizeof( buffer ),sizeof( buffer )-1, "%d %d" ARG_START "%s\n", msg, id, arg );
+ else sprintf_s( buffer,sizeof( buffer ), "%d %d" ARG_START "\n", msg, id );
#ifdef IVY_DEBUG
TRACE("SendMsg %s\n",buffer);
@@ -343,7 +343,7 @@ int IvyApplication::SendMsg(const char *message)
{
exp = regexp_in[i];
#ifdef USE_PCRE
- int match_count = pcre_exec( exp, NULL, message, strlen( message ), 0, 0, ovector, max_subexp );
+ int match_count = pcre_exec( exp, NULL, message, (int) strlen( message ), 0, 0, ovector, max_subexp );
if ( match_count > 0 )
{
ivy::string buffer;