From f5be4dfd960ce82ec1bd2c4ced7056118d7b01bd Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 19 Sep 2005 08:13:14 +0000 Subject: [PATCH] =?utf8?q?(Fformat):=20Don't=20scan=20past=20end=20of=20fo?= =?utf8?q?rmat=20string=20that=20ends=20in=20%.=20=20Reported=20by:=20Joha?= =?utf8?q?n=20Bockg=C3=A5rd.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/editfns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.39.5