From 591fa23f6e6ed403457bf86bd69b6c10f93334be Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 9 Nov 2009 14:40:06 +0000 Subject: [PATCH] The input key should be a u_char. Fixes top-bit-set input problem reported by ajacoutot@. --- tty-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); /*