Make sure characters aren't sign-extended before being handed to

isalnum().

svn path=/trunk/; revision=23254
This commit is contained in:
Guy Harris 2007-10-24 02:12:46 +00:00
parent b40d397b16
commit 10276efd48
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ static char* alnumerize(char* name) {
char c;
for (;(c = *r); r++) {
if (isalnum(c) || c == '_' || c == '-' || c == '.') {
if (isalnum((unsigned char)c) || c == '_' || c == '-' || c == '.') {
*(w++) = c;
}
}