diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-05-08 19:04:48 +0200 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-05-20 17:58:25 -0400 |
commit | 45619f5c2309246ef9eac99f4ef01aea23f52ea7 (patch) | |
tree | dcd47c54c40f26b9b7ef24a3550ecb058a641211 | |
parent | 3555f146a58789fe9c415f6cf396097e709deef9 (diff) | |
download | musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.zip musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.tar.gz musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.tar.bz2 |
fix strftime %s not to zero pad with default width=2
(cherry picked from commit ac0acd569e01735fc6052d43fdf57f3a07c93f3d)
-rw-r--r-- | src/time/strftime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time/strftime.c b/src/time/strftime.c index bc15013..75ebca6 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; |