summaryrefslogtreecommitdiff
path: root/Bus/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:19 +0000
committerfcolin2007-02-01 13:00:19 +0000
commit6677578c8c3cf9983139da455c372abba4aa75ed (patch)
tree1e020e94de3dc47860cf063ed19865c52806cce3 /Bus/Ivy/IvyApplication.cxx
parent5e4de17d8f8b38e7883f39ec22fe18c60b90a8d7 (diff)
downloadivy-cplusplus-6677578c8c3cf9983139da455c372abba4aa75ed.zip
ivy-cplusplus-6677578c8c3cf9983139da455c372abba4aa75ed.tar.gz
ivy-cplusplus-6677578c8c3cf9983139da455c372abba4aa75ed.tar.bz2
ivy-cplusplus-6677578c8c3cf9983139da455c372abba4aa75ed.tar.xz
Utilisateur : Fcolin Date : 16/11/05 Heure : 9:54 Archivé dans $/Bus/Ivy Commentaire: 64 bits ports (vss 26)
Diffstat (limited to 'Bus/Ivy/IvyApplication.cxx')
-rw-r--r--Bus/Ivy/IvyApplication.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx
index 6aa3668..5a50b96 100644
--- a/Bus/Ivy/IvyApplication.cxx
+++ b/Bus/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;