summaryrefslogtreecommitdiffstats
path: root/tty-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-09 14:40:06 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-09 14:40:06 +0000
commit591fa23f6e6ed403457bf86bd69b6c10f93334be (patch)
tree76012f49f092216a24c03a06e400efd840aef5bf /tty-keys.c
parentdaf150c38de726f75fc9229ec4f4c62498668bbb (diff)
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index f30775fb..a456f563 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -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);
/*