aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-10 23:27:03 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-10 23:27:03 +0000
commit36bb298bfacd8945d50994714e8f95da5e24323b (patch)
tree18a6f38a17306ad8665caf4b7224f9486040be1e /tty-keys.c
parente275bc52f224403d99ea8a92b51dcf7cada92668 (diff)
downloadrtmux-36bb298bfacd8945d50994714e8f95da5e24323b.tar.gz
rtmux-36bb298bfacd8945d50994714e8f95da5e24323b.tar.bz2
rtmux-36bb298bfacd8945d50994714e8f95da5e24323b.zip
Sync OpenBSD patchset 519:
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 3c8bc7bf..3d8b8a43 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -1,4 +1,4 @@
-/* $Id: tty-keys.c,v 1.44 2009-11-10 23:26:13 tcunha Exp $ */
+/* $Id: tty-keys.c,v 1.45 2009-11-10 23:27:03 tcunha 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);
/*