From 9958a0d437ff67e28d6034066fc99435c2fec33f Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:04:04 +0000 Subject: Utilisateur : Fcolin Date : 19/04/06 Heure : 15:07 Archivé dans $/Bus/Ivy Commentaire: (vss 14) --- Bus/Ivy/IvyWatcher.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bus/Ivy/IvyWatcher.cxx') diff --git a/Bus/Ivy/IvyWatcher.cxx b/Bus/Ivy/IvyWatcher.cxx index d9f8cf8..e2a2783 100644 --- a/Bus/Ivy/IvyWatcher.cxx +++ b/Bus/Ivy/IvyWatcher.cxx @@ -42,7 +42,7 @@ void IvyWatcher::OnReceive(int nErrorCode) TRACE("Receive Broadcast error %d\n",this->GetLastError()); return; } - buffer[err] ='\0'; + if ( err < 255 ) buffer[err] ='\0'; err = sscanf_s(buffer,"%d %u",&version, &serviceport); if ( err != 2 ) { -- cgit v1.1