diff options
| author | Andreas Schwab | 2007-11-15 23:52:51 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2007-11-15 23:52:51 +0000 |
| commit | 6e1ada1b21fca8307a6d363d672b1ac7ac32ea4c (patch) | |
| tree | 857882b754aaea442cd92239b4493dfb9063b1ff /src | |
| parent | 0f860bd79348a8d857cbf61d114bf689c6af5279 (diff) | |
| download | emacs-6e1ada1b21fca8307a6d363d672b1ac7ac32ea4c.tar.gz emacs-6e1ada1b21fca8307a6d363d672b1ac7ac32ea4c.zip | |
Fix last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c index 74261947d0e..f049aa67c30 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3541,8 +3541,10 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3541 | precision[n+1] = 10 * precision[n+1] + *format - '0'; | 3541 | precision[n+1] = 10 * precision[n+1] + *format - '0'; |
| 3542 | } | 3542 | } |
| 3543 | 3543 | ||
| 3544 | if (format - this_format_start + 1 > longest_format) | 3544 | /* Extra +1 for 'l' that we may need to insert into the |
| 3545 | longest_format = format - this_format_start + 1; | 3545 | format. */ |
| 3546 | if (format - this_format_start + 2 > longest_format) | ||
| 3547 | longest_format = format - this_format_start + 2; | ||
| 3546 | 3548 | ||
| 3547 | if (format == end) | 3549 | if (format == end) |
| 3548 | error ("Format string ends in middle of format specifier"); | 3550 | error ("Format string ends in middle of format specifier"); |