Change a variable to size_t since that's what it should be.

Originally committed to SVN as r2058.
This commit is contained in:
Niels Martin Hansen 2008-03-14 19:42:13 +00:00
parent 426917c9a6
commit 2cbf0e587d

View file

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