Cast "char"s to "unsigned char" before handing them to <ctype.h> macros.
svn path=/trunk/; revision=23417
This commit is contained in:
parent
1c9158a00e
commit
6f1740aa6c
|
@ -2196,7 +2196,7 @@ static char *alnumerize(
|
|||
|
||||
for ( ; (c = *r); ++r)
|
||||
{
|
||||
if (isalnum(c) || c == '_' || c == '.')
|
||||
if (isalnum((unsigned char)c) || c == '_' || c == '.')
|
||||
{
|
||||
*(w++) = c;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue