mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 21:07:36 +00:00
(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:
parent
49c04a9f6d
commit
cdcb5a4d25
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue