Mercurial > emacs
changeset 23567:5a0cdfd791a2
(XTread_socket): Check the returned value of XmbLookupString more carefully.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Thu, 29 Oct 1998 00:16:49 +0000 |
parents | 25baa4bda79d |
children | dba43a039f3c |
files | src/xterm.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Wed Oct 28 07:52:13 1998 +0000 +++ b/src/xterm.c Thu Oct 29 00:16:49 1998 +0000 @@ -4239,6 +4239,13 @@ &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 @@ count += nbytes; numchars -= nbytes; + + if (keysym == NoSymbol) + break; } else abort ();