aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2006-04-13 01:25:52 +0000
committerRichard M. Stallman2006-04-13 01:25:52 +0000
commita53fe666c2586f52be26b7a3e55b28f3b1a2f9fa (patch)
tree5341ee7df6dc03c1958bb83d47072d339734092a /src
parenta526e8f5793f2707d59d991d84eca4a132da9716 (diff)
downloademacs-a53fe666c2586f52be26b7a3e55b28f3b1a2f9fa.tar.gz
emacs-a53fe666c2586f52be26b7a3e55b28f3b1a2f9fa.zip
(read_key_sequence): Explicitly avoid keybuf[-1].
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/keyboard.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a4251651bda..71b7dde96b0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -5,6 +5,8 @@
5 5
62006-04-12 Richard Stallman <rms@gnu.org> 62006-04-12 Richard Stallman <rms@gnu.org>
7 7
8 * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
9
8 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return. 10 * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
9 (Fprocess_send_eof): Abort if fail to open null device. 11 (Fprocess_send_eof): Abort if fail to open null device.
10 12
diff --git a/src/keyboard.c b/src/keyboard.c
index 60ad54eac7e..1aca0127763 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1418,7 +1418,7 @@ command_loop_1 ()
1418 Lisp_Object keybuf[30]; 1418 Lisp_Object keybuf[30];
1419 int i; 1419 int i;
1420 int no_direct; 1420 int no_direct;
1421 int prev_modiff; 1421 int prev_modiff = 0;
1422 struct buffer *prev_buffer = NULL; 1422 struct buffer *prev_buffer = NULL;
1423#ifdef MULTI_KBOARD 1423#ifdef MULTI_KBOARD
1424 int was_locked = single_kboard; 1424 int was_locked = single_kboard;
@@ -9479,6 +9479,7 @@ read_key_sequence (keybuf, bufsize, prompt, dont_downcase_last,
9479 /* Don't downcase the last character if the caller says don't. 9479 /* Don't downcase the last character if the caller says don't.
9480 Don't downcase it if the result is undefined, either. */ 9480 Don't downcase it if the result is undefined, either. */
9481 if ((dont_downcase_last || first_binding >= nmaps) 9481 if ((dont_downcase_last || first_binding >= nmaps)
9482 && t > 0
9482 && t - 1 == original_uppercase_position) 9483 && t - 1 == original_uppercase_position)
9483 keybuf[t - 1] = original_uppercase; 9484 keybuf[t - 1] = original_uppercase;
9484 9485