From 1af7410a2333fdadc68edb9d4890434d75ebaf5e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 4 Mar 2017 23:14:51 -0800 Subject: [PATCH] * src/editfns.c (styled_format): Omit unnecessary code for "%0d" etc. --- src/editfns.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index d50ea83141b..db9ad066909 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -4270,16 +4270,15 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message) /* Create the copy of the conversion specification, with any width and precision removed, with ".*" inserted, and with pM inserted for integer formats. - At most three flags F can be specified at once. */ - char convspec[sizeof "%FFF.*d" + pMlen]; + At most two flags F can be specified at once. */ + char convspec[sizeof "%FF.*d" + pMlen]; { char *f = convspec; *f++ = '%'; - /* MINUS_FLAG is dealt with later. */ + /* MINUS_FLAG and ZERO_FLAG are dealt with later. */ *f = '+'; f += plus_flag; *f = ' '; f += space_flag; *f = '#'; f += sharp_flag; - *f = '0'; f += zero_flag; *f++ = '.'; *f++ = '*'; if (conversion == 'd' || conversion == 'i' -- 2.39.5