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