diff options
| author | Kim F. Storm | 2005-09-19 08:13:14 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-09-19 08:13:14 +0000 |
| commit | f5be4dfd960ce82ec1bd2c4ced7056118d7b01bd (patch) | |
| tree | a50917303514b87bda97c2547bb61c3d5fe62668 /src/editfns.c | |
| parent | 12d10bc72b0736e1fec2f1cb443b894807a634a9 (diff) | |
| download | emacs-f5be4dfd960ce82ec1bd2c4ced7056118d7b01bd.tar.gz emacs-f5be4dfd960ce82ec1bd2c4ced7056118d7b01bd.zip | |
(Fformat): Don't scan past end of format string that
ends in %. Reported by: Johan Bockgård.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c index e67e56d2efa..c8b02570c12 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -3424,7 +3424,7 @@ usage: (format STRING &rest OBJECTS) */) | |||
| 3424 | digits to print after the '.' for floats, or the max. | 3424 | digits to print after the '.' for floats, or the max. |
| 3425 | number of chars to print from a string. */ | 3425 | number of chars to print from a string. */ |
| 3426 | 3426 | ||
| 3427 | while (index ("-0# ", *format)) | 3427 | while (*format && index ("-0# ", *format)) |
| 3428 | ++format; | 3428 | ++format; |
| 3429 | 3429 | ||
| 3430 | if (*format >= '0' && *format <= '9') | 3430 | if (*format >= '0' && *format <= '9') |