summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:04:02 +0000
committerfcolin2007-02-01 13:04:02 +0000
commitf7cffc1477ac2dffa98bca7f9cd5b589ef62f00d (patch)
treedb0fe41f244857c2ec4419d15444741aaeb90cae /Ivy
parentf67017bf198b8d5cce6cbe7823a20e052e12b3d6 (diff)
downloadivy-cplusplus-f7cffc1477ac2dffa98bca7f9cd5b589ef62f00d.zip
ivy-cplusplus-f7cffc1477ac2dffa98bca7f9cd5b589ef62f00d.tar.gz
ivy-cplusplus-f7cffc1477ac2dffa98bca7f9cd5b589ef62f00d.tar.bz2
ivy-cplusplus-f7cffc1477ac2dffa98bca7f9cd5b589ef62f00d.tar.xz
Utilisateur : Fcolin Date : 16/11/05 Heure : 9:54 Archivé dans $/Bus/Ivy Commentaire: 64 bits ports (vss 13)
Diffstat (limited to 'Ivy')
-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() )