diff options
author | fcolin | 2007-02-01 13:01:41 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:01:41 +0000 |
commit | c3274e967259bce7d4864e60efd8b9dc445fd970 (patch) | |
tree | 08d5390dd06ed436638418ed629e4ab8627ba883 | |
parent | b45ddab96b1b9016075edc838ad9ccb70c1747aa (diff) | |
download | ivy-cplusplus-c3274e967259bce7d4864e60efd8b9dc445fd970.zip ivy-cplusplus-c3274e967259bce7d4864e60efd8b9dc445fd970.tar.gz ivy-cplusplus-c3274e967259bce7d4864e60efd8b9dc445fd970.tar.bz2 ivy-cplusplus-c3274e967259bce7d4864e60efd8b9dc445fd970.tar.xz |
Utilisateur : Fcolin Date : 16/11/05 Heure : 9:54 Archivé dans $/Bus/Ivy Commentaire: 64 bits ports (vss 6)
-rw-r--r-- | Bus/Ivy/IvyCbindings.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bus/Ivy/IvyCbindings.cxx b/Bus/Ivy/IvyCbindings.cxx index 9a188ab..7f11339 100644 --- a/Bus/Ivy/IvyCbindings.cxx +++ b/Bus/Ivy/IvyCbindings.cxx @@ -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 );
- _vsnprintf( buf_regexp, sizeof(buf_regexp), fmt_regexp, args );
+ _vsnprintf_s( buf_regexp, sizeof(buf_regexp), sizeof(buf_regexp)-1, 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 );
- _vsnprintf( buf, sizeof(buf), fmt, args );
+ _vsnprintf_s( buf, sizeof(buf), sizeof(buf)-1, 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 );
- _vsnprintf( buf, sizeof(buf), fmt_message, args );
+ _vsnprintf_s( buf, sizeof(buf), sizeof(buf)-1, fmt_message, args );
count = bus->SendMsg(buf);
va_end( args );
return count;
|