quiet some warnings
This commit is contained in:
@@ -192,7 +192,7 @@ void errSymLookup(long status, char * pBuf, size_t bufLength)
|
||||
{
|
||||
const char* msg = errSymLookupInternal(status);
|
||||
if(msg) {
|
||||
strncpy(pBuf, msg, bufLength);
|
||||
strncpy(pBuf, msg, bufLength-1);
|
||||
pBuf[bufLength-1] = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user