Commit a02719a3 authored by Paul Eggert's avatar Paul Eggert
Browse files

* 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.
parent 72589a3c
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
......
......@@ -4137,8 +4137,9 @@ usage: (format STRING &rest OBJECTS) */)
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
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment