Mercurial > emacs
diff src/editfns.c @ 86124:fe9b5d62e0af
Fix last change.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Thu, 15 Nov 2007 23:52:51 +0000 |
parents | 54e0c02f7b7b |
children | 5c30362455bf |
line wrap: on
line diff
--- a/src/editfns.c Thu Nov 15 23:38:14 2007 +0000 +++ b/src/editfns.c Thu Nov 15 23:52:51 2007 +0000 @@ -3541,8 +3541,10 @@ precision[n+1] = 10 * precision[n+1] + *format - '0'; } - if (format - this_format_start + 1 > longest_format) - longest_format = format - this_format_start + 1; + /* Extra +1 for 'l' that we may need to insert into the + format. */ + if (format - this_format_start + 2 > longest_format) + longest_format = format - this_format_start + 2; if (format == end) error ("Format string ends in middle of format specifier");