changeset 1404:1c2080f78a36

* keyboard.c (kbd_buffer_get_event): Fix fencepost bug in fetching events from kbd_buffer.
author Jim Blandy <jimb@redhat.com>
date Mon, 12 Oct 1992 22:12:59 +0000
parents f0ea279194f8
children 45d463eff0b3
files src/keyboard.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Oct 12 21:40:50 1992 +0000
+++ b/src/keyboard.c	Mon Oct 12 22:12:59 1992 +0000
@@ -1584,7 +1584,7 @@
       struct input_event *event;
       Lisp_Object frame;
 
-      event = ((kbd_fetch_ptr <= kbd_buffer + KBD_BUFFER_SIZE)
+      event = ((kbd_fetch_ptr < kbd_buffer + KBD_BUFFER_SIZE)
 	       ? kbd_fetch_ptr
 	       : kbd_buffer);