diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/names.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c index 0e181629647..754dd552b07 100644 --- a/usr.bin/tmux/names.c +++ b/usr.bin/tmux/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */ +/* $OpenBSD: names.c,v 1.2 2009/06/03 04:03:16 ray Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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'; } |