summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-09-19 08:13:14 +0000
committerKim F. Storm <storm@cua.dk>2005-09-19 08:13:14 +0000
commitebf828b2de4113e54eda030393058df6fd7f472e (patch)
tree3419f1fc133b185c0f24762ef4e6bd6042055509 /src/editfns.c
parent018da784a68cbe6b4f2c553cfaaf90c019ee2ea9 (diff)
downloademacs-ebf828b2de4113e54eda030393058df6fd7f472e.tar.gz
(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.c2
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) */)
digits to print after the '.' for floats, or the max.
number of chars to print from a string. */
- while (index ("-0# ", *format))
+ while (*format && index ("-0# ", *format))
++format;
if (*format >= '0' && *format <= '9')