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 /src/time | |
parent | 3555f146a58789fe9c415f6cf396097e709deef9 (diff) | |
download | musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.tar.gz musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.tar.bz2 musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.tar.xz musl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.zip |
fix strftime %s not to zero pad with default width=2
(cherry picked from commit ac0acd569e01735fc6052d43fdf57f3a07c93f3d)
Diffstat (limited to 'src/time')
-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 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; |