diff options
Diffstat (limited to 'time/strftime.c')
-rw-r--r-- | time/strftime.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/time/strftime.c b/time/strftime.c index c781841c6a..1af2f83023 100644 --- a/time/strftime.c +++ b/time/strftime.c @@ -358,6 +358,9 @@ strftime (s, maxsize, format, tp) add (maxdigits, sprintf (p, number_fmt, number_value); printed = strlen (p)); #endif + /* Back up if fewer than MAXDIGITS chars written for pad_none. */ + p -= maxdigits - printed; + i -= maxdigits - printed; break; } |