From: Paul Eggert Date: Mon, 24 Oct 2011 03:05:21 +0000 (-0700) Subject: * keyboard.c (parse_modifiers_uncached): Simpler fix. X-Git-Tag: emacs-24.2.90~471^2~6^2~143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=43f6f8d5ca052c2511c7988f188e65d507e703d0;p=emacs.git * keyboard.c (parse_modifiers_uncached): Simpler fix. --- 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;