From 43f6f8d5ca052c2511c7988f188e65d507e703d0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 23 Oct 2011 20:05:21 -0700 Subject: [PATCH] * keyboard.c (parse_modifiers_uncached): Simpler fix. --- src/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard.c b/src/keyboard.c index 7c199b3ae14..3ff0e82440b 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -6057,7 +6057,7 @@ parse_modifiers_uncached (Lisp_Object symbol, ptrdiff_t *modifier_end) modifiers = 0; name = SYMBOL_NAME (symbol); - for (i = 0; 2 <= SBYTES (name) - i; ) + for (i = 0; i < SBYTES (name) - 1; ) { ptrdiff_t this_mod_end = 0; int this_mod = 0; -- 2.39.2