diff options
Diffstat (limited to 'Bus/Ivy/IvyWatcher.cxx')
-rw-r--r-- | Bus/Ivy/IvyWatcher.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 )
{
|