quiet some warnings

This commit is contained in:
Michael Davidsaver
2019-11-12 18:15:32 -08:00
parent 7acd7c6145
commit 905ca4b7ac
5 changed files with 6 additions and 9 deletions

View File

@@ -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;
}