diff options
| author | Karoly Lorentey | 2004-02-26 00:52:10 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-02-26 00:52:10 +0000 |
| commit | cdcb5a4d2564bb3ad9f9fe017fda06506ecc2618 (patch) | |
| tree | bae4c707bd6b5bdcc06013f4f800ac6636e5aed4 | |
| parent | 49c04a9f6d18e3df5fd0aa832061d4da75a4d8ff (diff) | |
| download | emacs-cdcb5a4d2564bb3ad9f9fe017fda06506ecc2618.tar.gz emacs-cdcb5a4d2564bb3ad9f9fe017fda06506ecc2618.zip | |
(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
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 90bd9abd6cf..546c93600d4 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7205,7 +7205,7 @@ XTread_socket (display, bufp, numchars, expected) | |||
| 7205 | #endif | 7205 | #endif |
| 7206 | 7206 | ||
| 7207 | #ifndef USE_GTK | 7207 | #ifndef USE_GTK |
| 7208 | while (XPending (dpyinfo->display)) | 7208 | while (numchars > 0 && XPending (dpyinfo->display)) |
| 7209 | { | 7209 | { |
| 7210 | int finish; | 7210 | int finish; |
| 7211 | 7211 | ||