Make sure characters aren't sign-extended before being handed to
isalnum(). svn path=/trunk/; revision=23254
This commit is contained in:
parent
b40d397b16
commit
10276efd48
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue