Fix ‘format’ bug with property offsets

* src/editfns.c (styled_format): Fix recently-introduced ‘format’
bug in calculating string property offsets (Bug#21351).
This commit is contained in:
Paul Eggert 2015-08-27 04:09:11 -07:00
parent 2934c21f2d
commit f33c164123

View file

@ -4013,10 +4013,14 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message)
error ("Format string ends in middle of format specifier");
memset (&discarded[format0 - format_start], 1, format - format0);
conversion = *format++;
conversion = *format;
if (conversion == '%')
goto copy_char;
{
format++;
goto copy_char;
}
discarded[format - format_start] = 1;
format++;
++n;
if (! (n < nargs))