Cleaning up build on gcc

This commit is contained in:
Michael Tryby
2019-04-03 09:27:51 -04:00
parent 8b35866b69
commit 207cc53b04
5 changed files with 11 additions and 9 deletions

View File

@@ -15,10 +15,10 @@ void mock_lookup(int errcode, char *errmsg, int len)
char *msg = NULL;
if (errcode == 100) {
msg = MESSAGE_STRING;
msg = (char *)MESSAGE_STRING;
}
else {
msg = "";
msg = (char *)"";
}
strncpy(errmsg, msg, len);
}