summaryrefslogtreecommitdiff
path: root/Ivy/IvyWatcher.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/IvyWatcher.cxx')
-rw-r--r--Ivy/IvyWatcher.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ivy/IvyWatcher.cxx b/Ivy/IvyWatcher.cxx
index 4faca90..d9f8cf8 100644
--- a/Ivy/IvyWatcher.cxx
+++ b/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() )