changeset 83062:8cfc953cfadf

(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
author Karoly Lorentey <lorentey@elte.hu>
date Thu, 26 Feb 2004 00:52:10 +0000
parents bff8fa30c018
children 404175b0a47e
files src/xterm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Feb 26 00:39:34 2004 +0000
+++ b/src/xterm.c	Thu Feb 26 00:52:10 2004 +0000
@@ -7205,7 +7205,7 @@
 #endif
 
 #ifndef USE_GTK
-      while (XPending (dpyinfo->display))
+      while (numchars > 0 && XPending (dpyinfo->display))
 	{
           int finish;