Change a variable to size_t since that's what it should be.
Originally committed to SVN as r2058.
This commit is contained in:
parent
426917c9a6
commit
2cbf0e587d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ static const char *get_errstr()
|
|||
NULL, err, 0, msg, sizeof(msg), NULL))
|
||||
strcpy(msg, "Unknown Error");
|
||||
else {
|
||||
int msglen = strlen(msg) - 1;
|
||||
size_t msglen = strlen(msg) - 1;
|
||||
if (msg[msglen] == '\n')
|
||||
msg[msglen] = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue