changed sprintf format

This commit is contained in:
Jeff Hill
2001-10-05 01:32:18 +00:00
parent 2015e37f53
commit 90b4d40b96

View File

@@ -1201,8 +1201,7 @@ void cac::disconnectAllIO ( nciu & chan, bool enableCallbacks )
}
if ( enableCallbacks ) {
char buf[128];
sprintf ( buf, "host = %*s",
sizeof(buf)-1, chan.pHostName() );
sprintf ( buf, "host = %100s", chan.pHostName() );
epicsAutoMutexRelease unlocker ( this->mutex );
pNetIO->exception ( ECA_DISCONN, buf );
}