From eacb81224aada43fed520ba5d6bc76072aed813b Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:04:02 +0000 Subject: Utilisateur : Fcolin Date : 16/11/05 Heure : 9:54 Archivé dans $/Bus/Ivy Commentaire: 64 bits ports (vss 13) --- Bus/Ivy/IvyWatcher.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bus/Ivy/IvyWatcher.cxx') 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() ) -- cgit v1.1