diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-09 14:40:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-09 14:40:06 +0000 |
commit | 591fa23f6e6ed403457bf86bd69b6c10f93334be (patch) | |
tree | 76012f49f092216a24c03a06e400efd840aef5bf | |
parent | daf150c38de726f75fc9229ec4f4c62498668bbb (diff) | |
download | rtmux-591fa23f6e6ed403457bf86bd69b6c10f93334be.tar.gz rtmux-591fa23f6e6ed403457bf86bd69b6c10f93334be.tar.bz2 rtmux-591fa23f6e6ed403457bf86bd69b6c10f93334be.zip |
The input key should be a u_char. Fixes top-bit-set input problem reported by
ajacoutot@.
-rw-r--r-- | tty-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); /* |