diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-09 14:40:07 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-09 14:40:07 +0000 |
commit | dad89e5ecf89758992bd84557ff0e0d6dbef9da9 (patch) | |
tree | c712dd13fd824e410f799a58e6b82a7c224bbe16 | |
parent | b3f28475b4cd787de880ac2ee00b9467fdf5eece (diff) |
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
-rw-r--r-- | usr.bin/tmux/tty-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty-keys.c b/usr.bin/tmux/tty-keys.c index 8cd07259d95..c044b6e8e1f 100644 --- a/usr.bin/tmux/tty-keys.c +++ b/usr.bin/tmux/tty-keys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-keys.c,v 1.18 2009/11/09 11:45:10 nicm Exp $ */ +/* $OpenBSD: tty-keys.c,v 1.19 2009/11/09 14:40:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -364,7 +364,7 @@ tty_keys_next(struct tty *tty) /* If a normal key, return it. */ if (*buf != '\033') { - key = *buf; + key = (u_char) *buf; evbuffer_drain(tty->event->input, 1); /* |