summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/IvyWatcher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ivy/IvyWatcher.cxx b/Ivy/IvyWatcher.cxx
index d9f8cf8..e2a2783 100644
--- a/Ivy/IvyWatcher.cxx
+++ b/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 )
{