summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Bus/Ivy/IvyCbindings.cxx6
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;