From c3274e967259bce7d4864e60efd8b9dc445fd970 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:01:41 +0000 Subject: Utilisateur : Fcolin Date : 16/11/05 Heure : 9:54 Archivé dans $/Bus/Ivy Commentaire: 64 bits ports (vss 6) --- Bus/Ivy/IvyCbindings.cxx | 6 +++--- 1 file 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; -- cgit v1.1