Commit 15acfe41 authored by Glenn Morris's avatar Glenn Morris

* src/lread.c (readchar): Don't read from a dead buffer. (Bug#14280)

parent 54c57cc6
2013-05-07 Glenn Morris <rgm@gnu.org>
* lread.c (readchar): Don't read from a dead buffer. (Bug#14280)
2013-05-07 Jan Djärv <jan.h.d@swipnet.se>
* xfns.c: Move misplaced ifndef USE_GTK from previous checkin.
......
......@@ -201,6 +201,9 @@ readchar (Lisp_Object readcharfun, bool *multibyte)
ptrdiff_t pt_byte = BUF_PT_BYTE (inbuffer);
if (! BUFFER_LIVE_P (inbuffer))
return -1;
if (pt_byte >= BUF_ZV_BYTE (inbuffer))
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment