1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Use i_isspace to make this clearer.

git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5019 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2009-02-21 17:34:13 +00:00 committed by jilles
parent fe5ebc57a9
commit 145f566f19

View File

@ -85,7 +85,7 @@ static void set_int(const char *key, const char *value)
errno = 0;
longval = strtol(value, &endp, 10);
error = errno;
while (isspace((unsigned char)*endp))
while (i_isspace(*endp))
endp++;
if (error != 0 || *endp != '\0' || longval < INT_MIN || longval > INT_MAX)
printformat(NULL, NULL, MSGLEVEL_CLIENTERROR, TXT_INVALID_NUMBER);