diff options
-rw-r--r-- | Ivy/IvyCbindings.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 <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;
|