diff options
author | 2013-11-20 17:01:23 +0000 | |
---|---|---|
committer | 2013-11-20 17:01:23 +0000 | |
commit | 6e3a22fc2918179c41c75afa05f5ecb294ecf66e (patch) | |
tree | b8aa29ba46d5d00f902dcd555d53cd846aab2fa5 | |
parent | repair signed char vs isdigit (diff) | |
download | wireguard-openbsd-6e3a22fc2918179c41c75afa05f5ecb294ecf66e.tar.xz wireguard-openbsd-6e3a22fc2918179c41c75afa05f5ecb294ecf66e.zip |
missing unsigned char casts areound tolower()
ok nicm
-rw-r--r-- | usr.bin/tmux/window-copy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-copy.c b/usr.bin/tmux/window-copy.c index 13b43650d7d..59b11f4ed77 100644 --- a/usr.bin/tmux/window-copy.c +++ b/usr.bin/tmux/window-copy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.97 2013/11/09 00:48:57 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.98 2013/11/20 17:01:23 deraadt Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1030,7 +1030,7 @@ window_copy_search_up(struct window_pane *wp, const char *searchstr) cis = 1; for (ptr = searchstr; *ptr != '\0'; ptr++) { - if (*ptr != tolower(*ptr)) { + if (*ptr != tolower((u_char)*ptr)) { cis = 0; break; } @@ -1097,7 +1097,7 @@ window_copy_search_down(struct window_pane *wp, const char *searchstr) cis = 1; for (ptr = searchstr; *ptr != '\0'; ptr++) { - if (*ptr != tolower(*ptr)) { + if (*ptr != tolower((u_char)*ptr)) { cis = 0; break; } |