From f7cffc1477ac2dffa98bca7f9cd5b589ef62f00d 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) --- Ivy/IvyWatcher.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ivy') 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() ) -- cgit v1.1