quiet some warnings

This commit is contained in:
Michael Davidsaver committed 2019-11-13 10:17:43 -08:00
1 parent 7acd7c6145
commit 905ca4b7ac
5 files changed
+6 -9

No files matched your search

+1 -1
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;
}