diff options
-rw-r--r-- | Bus/Ivy/IvyWatcher.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bus/Ivy/IvyWatcher.cxx b/Bus/Ivy/IvyWatcher.cxx index 4faca90..d9f8cf8 100644 --- a/Bus/Ivy/IvyWatcher.cxx +++ b/Bus/Ivy/IvyWatcher.cxx @@ -43,7 +43,7 @@ void IvyWatcher::OnReceive(int nErrorCode) return;
}
buffer[err] ='\0';
- err = sscanf(buffer,"%d %u",&version, &serviceport);
+ err = sscanf_s(buffer,"%d %u",&version, &serviceport);
if ( err != 2 )
{
/* ignore the message */
@@ -97,7 +97,7 @@ void IvyWatcher::start(const char *domainlist) ivy::string addr;
char hello[1024];
- int len = _snprintf( hello, sizeof(hello), "%d %u\n", VERSION, bus->GetApplicationPort() );
+ int len = _snprintf_s( hello, sizeof(hello), sizeof(hello)-1, "%d %u\n", VERSION, bus->GetApplicationPort() );
// send broadcast to domain list
while ( !domain.empty() )
|