Mercurial > emacs
diff src/editfns.c @ 79424:c83ab4ee6f0f
Fix last change.
| author | Andreas Schwab <schwab@suse.de> |
|---|---|
| date | Thu, 15 Nov 2007 23:53:10 +0000 |
| parents | 45618be84af9 |
| children | 8026a4be9d9c |
line wrap: on
line diff
--- a/src/editfns.c Thu Nov 15 23:45:21 2007 +0000 +++ b/src/editfns.c Thu Nov 15 23:53:10 2007 +0000 @@ -3543,8 +3543,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");
