# HG changeset patch # User Andreas Schwab # Date 1195170790 0 # Node ID c83ab4ee6f0f2d8baeecc4fbd63cdb172f742a77 # Parent b2d6f79f0166e26118f7e14e97cd1b76a1877f6f Fix last change. diff -r b2d6f79f0166 -r c83ab4ee6f0f src/editfns.c --- 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");