mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Cast char to u_char before passing to isalnum().
OK nicm@
This commit is contained in:
parent
3f76a973ee
commit
fdda4142bf
1 changed files with 1 additions and 1 deletions
2
names.c
2
names.c
|
|
@ -97,7 +97,7 @@ parse_window_name(const char *in)
|
|||
|
||||
if (*name != '\0') {
|
||||
ptr = name + strlen(name) - 1;
|
||||
while (ptr > name && !isalnum(*ptr))
|
||||
while (ptr > name && !isalnum((u_char)*ptr))
|
||||
*ptr-- = '\0';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue