mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 21:37:34 +00:00
Allow tty_read_avail_input to use the whole input buffer.
src/keyboard.c (tty_read_avail_input): Use a cbuf of size numchar, not numchar-1. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-96
This commit is contained in:
parent
01d81f75b9
commit
a0dc3cb69a
1 changed files with 2 additions and 2 deletions
|
|
@ -6685,10 +6685,10 @@ tty_read_avail_input (struct display *display,
|
|||
struct input_event *buf,
|
||||
int numchars, int expected)
|
||||
{
|
||||
/* Using numchars - 1 here avoids reading more than the buf can
|
||||
/* Using numchars here avoids reading more than the buf can
|
||||
really hold. That may prevent loss of characters on some systems
|
||||
when input is stuffed at us. */
|
||||
unsigned char cbuf[numchars - 1];
|
||||
unsigned char cbuf[numchars];
|
||||
int n_to_read, i;
|
||||
struct tty_display_info *tty = display->display_info.tty;
|
||||
int nread = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue