From: Szabolcs Nagy Date: Thu, 8 May 2014 17:04:48 +0000 (+0200) Subject: fix strftime %s not to zero pad with default width=2 X-Git-Tag: v1.1.1~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac0acd569e01735fc6052d43fdf57f3a07c93f3d;p=oweals%2Fmusl.git fix strftime %s not to zero pad with default width=2 --- diff --git a/src/time/strftime.c b/src/time/strftime.c index bc150139..75ebca62 100644 --- a/src/time/strftime.c +++ b/src/time/strftime.c @@ -126,6 +126,7 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm * goto recu_strftime; case 's': val = __tm_to_secs(tm) + tm->__tm_gmtoff; + width = 1; goto number; case 'S': val = tm->tm_sec;