Cast "char"s to "unsigned char" before handing them to <ctype.h> macros.

svn path=/trunk/; revision=23417
This commit is contained in:
Guy Harris 2007-11-10 00:36:01 +00:00
parent 1c9158a00e
commit 6f1740aa6c
1 changed files with 1 additions and 1 deletions

View File

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