summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-09 14:40:07 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-09 14:40:07 +0000
commitdad89e5ecf89758992bd84557ff0e0d6dbef9da9 (patch)
treec712dd13fd824e410f799a58e6b82a7c224bbe16 /usr.bin/tmux
parentb3f28475b4cd787de880ac2ee00b9467fdf5eece (diff)
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty-keys.c4
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);
/*