mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-25 03:47:14 +00:00
Sync OpenBSD patchset 519:
The input key should be a u_char. Fixes top-bit-set input problem reported by ajacoutot@.
This commit is contained in:
parent
e275bc52f2
commit
36bb298bfa
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue