]> code.delx.au - gnu-emacs/commit
Fix kbd_buffer iteration loop in readable_events
authorKen Raeburn <raeburn@raeburn.org>
Tue, 24 Nov 2015 06:16:10 +0000 (01:16 -0500)
committerKen Raeburn <raeburn@raeburn.org>
Tue, 24 Nov 2015 08:51:13 +0000 (03:51 -0500)
commitcb1bd3496594d5e4060d990b4c6bac748fb974c9
tree96dc17b8a41b4207c33a45fee7eaf839dc54d0c9
parentb8bf03161123de6de5570fd3f4d1cf3ed94084e1
Fix kbd_buffer iteration loop in readable_events

* src/keyboard.c (readable_events): Wrap the event pointer back to the
start of the kbd_buffer array inside the top of the loop instead of
right before checking the loop condition, since kbd_fetch_ptr and
kbd_store_ptr point past the end of the array to mean that element 0
is next. (bug#21935)
src/keyboard.c