2006-04-12 Richard Stallman <rms@gnu.org>
+ * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
+
* process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
(Fprocess_send_eof): Abort if fail to open null device.
Lisp_Object keybuf[30];
int i;
int no_direct;
- int prev_modiff;
+ int prev_modiff = 0;
struct buffer *prev_buffer = NULL;
#ifdef MULTI_KBOARD
int was_locked = single_kboard;
/* Don't downcase the last character if the caller says don't.
Don't downcase it if the result is undefined, either. */
if ((dont_downcase_last || first_binding >= nmaps)
+ && t > 0
&& t - 1 == original_uppercase_position)
keybuf[t - 1] = original_uppercase;