HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3ede3
)
(XTread_socket): Check the returned value of XmbLookupString more carefully.
author
Paul Eggert
<eggert@twinsun.com>
Thu, 29 Oct 1998 00:16:49 +0000
(
00:16
+0000)
committer
Paul Eggert
<eggert@twinsun.com>
Thu, 29 Oct 1998 00:16:49 +0000
(
00:16
+0000)
src/xterm.c
patch
|
blob
|
blame
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index
b9a8d1c
..
e04b04e
100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-4239,6
+4239,13
@@
XTread_socket (sd, bufp, numchars, expected)
&event.xkey, copy_buffer,
80, &keysym,
&status_return);
+ if (status_return == XLookupNone)
+ break;
+ else if (status_return == XLookupChars)
+ keysym = NoSymbol;
+ else if (status_return != XLookupKeySym
+ && status_return != XLookupBoth)
+ abort ();
}
else
nbytes = XLookupString (&event.xkey, copy_buffer,
@@
-4357,6
+4364,9
@@
XTread_socket (sd, bufp, numchars, expected)
count += nbytes;
numchars -= nbytes;
+
+ if (keysym == NoSymbol)
+ break;
}
else
abort ();