From b3c991e52707bf1447d1c63b5b6a78fa300753e3 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:01:37 +0000 Subject: Utilisateur : Fcolin Date : 1/06/05 Heure : 16:45 Archivé dans $/Bus/Ivy Commentaire: (vss 4) --- Ivy/IvyCbindings.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ivy/IvyCbindings.cxx') diff --git a/Ivy/IvyCbindings.cxx b/Ivy/IvyCbindings.cxx index 18d5268..9ab5efb 100644 --- a/Ivy/IvyCbindings.cxx +++ b/Ivy/IvyCbindings.cxx @@ -1,5 +1,5 @@ -#include "stdafx.h" +#include "IvyStdAfx.h" #include #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; -- cgit v1.1