diff options
author | 2009-06-03 04:03:16 +0000 | |
---|---|---|
committer | 2009-06-03 04:03:16 +0000 | |
commit | 3619f6a1991c64046661f19bff5d9f13b33f1076 (patch) | |
tree | 453632b63d009f522c510bfbb3762d9b8bf0dfaa /usr.bin/tmux/names.c | |
parent | Revert readv/writev changes, as they trigger an apparent file descriptor (diff) | |
download | wireguard-openbsd-3619f6a1991c64046661f19bff5d9f13b33f1076.tar.xz wireguard-openbsd-3619f6a1991c64046661f19bff5d9f13b33f1076.zip |
Cast char to u_char before passing to isalnum().
OK nicm@
Diffstat (limited to 'usr.bin/tmux/names.c')
-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'; } |