Don't mishandle (length (format "%%")) and (format "%4000s%%" "").
+2011-09-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ * editfns.c (Fformat): Fix bug in text-property fix (Bug#9514).
+ Don't mishandle (length (format "%%")) and (format "%4000s%%" "").
+
2011-09-15 Andreas Schwab <schwab@linux-m68k.org>
* editfns.c (Fformat): Correctly handle text properties on "%%".
memset (&discarded[format0 - format_start], 1, format - format0);
conversion = *format;
if (conversion == '%')
- {
- format0++;
- nchars++;
- goto copy_char;
- }
+ goto copy_char;
discarded[format - format_start] = 1;
format++;
while (! CHAR_HEAD_P (*format));
convbytes = format - src;
- memset (&discarded[format0 + 1 - format_start], 2, convbytes - 1);
+ memset (&discarded[src + 1 - format_start], 2, convbytes - 1);
}
else
{