(Sigh.) Don't try to read more events than the buffer size.

src/xterm.c (XTread_socket): Don't try to read more events than
numchars.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-102
This commit is contained in:
Karoly Lorentey 2004-02-26 00:52:10 +00:00
parent 49c04a9f6d
commit cdcb5a4d25

View file

@ -7205,7 +7205,7 @@ XTread_socket (display, bufp, numchars, expected)
#endif
#ifndef USE_GTK
while (XPending (dpyinfo->display))
while (numchars > 0 && XPending (dpyinfo->display))
{
int finish;