This occurs when processing a multibyte format, which can happen
when using 'eval'. Problem reported by Wolfgang Jenker.
+2011-09-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * editfns.c (Fformat): Fix off-by-1 bug for "%%b" (Bug#9514).
+ This occurs when processing a multibyte format, which can happen
+ when using 'eval'. Problem reported by Wolfgang Jenker.
+
2011-09-15 Johan Bockgård <bojohan@gnu.org>
* xdisp.c (try_cursor_movement): Only check for exact match if
format++;
while (! CHAR_HEAD_P (*format));
- convbytes = format - format0;
- memset (&discarded[format0 + 1 - format_start], 2, convbytes - 1);
+ convbytes = format - src;
+ memset (&discarded[format0 + 1 - format_start], 2,
+ format - (format0 + 1));
}
else
{