]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change.
authorAndreas Schwab <schwab@suse.de>
Thu, 15 Nov 2007 23:52:51 +0000 (23:52 +0000)
committerAndreas Schwab <schwab@suse.de>
Thu, 15 Nov 2007 23:52:51 +0000 (23:52 +0000)
src/editfns.c

index 74261947d0e2fb1c78a1b5ad2ddf0b012df599ee..f049aa67c308b962dbb36f8f2b064fd8cc04b5b1 100644 (file)
@@ -3541,8 +3541,10 @@ usage: (format STRING &rest OBJECTS)  */)
              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");