diff options
author | fcolin | 2007-02-01 13:01:37 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:01:37 +0000 |
commit | 990194bc0ac8ab4fefbc80551ba9e7fb86905fa3 (patch) | |
tree | 3c45275d6b2b7bf60bb69ff58c903e8035fa08da | |
parent | 6ea4a1b6bec99b265876d68b045ae0619bfae55d (diff) | |
download | ivy-cplusplus-990194bc0ac8ab4fefbc80551ba9e7fb86905fa3.zip ivy-cplusplus-990194bc0ac8ab4fefbc80551ba9e7fb86905fa3.tar.gz ivy-cplusplus-990194bc0ac8ab4fefbc80551ba9e7fb86905fa3.tar.bz2 ivy-cplusplus-990194bc0ac8ab4fefbc80551ba9e7fb86905fa3.tar.xz |
Utilisateur : Fcolin Date : 1/06/05 Heure : 16:45 Archivé dans $/Bus/Ivy Commentaire: (vss 4)
-rw-r--r-- | Bus/Ivy/IvyCbindings.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Bus/Ivy/IvyCbindings.cxx b/Bus/Ivy/IvyCbindings.cxx index 18d5268..9ab5efb 100644 --- a/Bus/Ivy/IvyCbindings.cxx +++ b/Bus/Ivy/IvyCbindings.cxx @@ -1,5 +1,5 @@ -#include "stdafx.h"
+#include "IvyStdAfx.h"
#include <stdarg.h>
#include "Ivy.h"
#include "IvyApplication.h"
@@ -76,7 +76,7 @@ MsgRcvPtr IvyBindMsg( IvyCMsgCallback callback, void *user_data, const char *fmt char buf_regexp[2048];
va_list args;
va_start( args, fmt_regexp );
- vsprintf( buf_regexp, fmt_regexp, args );
+ _vsnprintf( buf_regexp, sizeof(buf_regexp), fmt_regexp, args );
count = bus->BindMsg(buf_regexp, BUS_CALLBACK( ((IvyMessageCallbackFunction::IvyMessageCallback_fun)callback), user_data ) );
va_end( args );
return count;
@@ -92,7 +92,7 @@ void IvySendError( IvyClientPtr app, int id, const char *fmt, ... ) char buf[2048];
va_list args;
va_start( args, fmt );
- vsprintf( buf, fmt, args );
+ _vsnprintf( buf, sizeof(buf), fmt, args );
((IvyApplication*)app)->SendMsg( IvyApplication::Error, id, buf );
va_end( args );
}
@@ -111,7 +111,7 @@ int IvySendMsg( const char *fmt_message, ... ) char buf[2048];
va_list args;
va_start( args, fmt_message );
- vsprintf( buf, fmt_message, args );
+ _vsnprintf( buf, sizeof(buf), fmt_message, args );
count = bus->SendMsg(buf);
va_end( args );
return count;
|