Cast char to u_char before passing to isalnum().

OK nicm@
This commit is contained in:
Ray Lai 2009-06-03 04:03:16 +00:00
parent 3f76a973ee
commit fdda4142bf

View File

@ -97,7 +97,7 @@ parse_window_name(const char *in)
if (*name != '\0') { if (*name != '\0') {
ptr = name + strlen(name) - 1; ptr = name + strlen(name) - 1;
while (ptr > name && !isalnum(*ptr)) while (ptr > name && !isalnum((u_char)*ptr))
*ptr-- = '\0'; *ptr-- = '\0';
} }