summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-05-08 19:04:48 +0200
committerRich Felker <dalias@aerifal.cx>2014-05-20 17:58:25 -0400
commit45619f5c2309246ef9eac99f4ef01aea23f52ea7 (patch)
treedcd47c54c40f26b9b7ef24a3550ecb058a641211
parent3555f146a58789fe9c415f6cf396097e709deef9 (diff)
downloadmusl-45619f5c2309246ef9eac99f4ef01aea23f52ea7.tar.gz
fix strftime %s not to zero pad with default width=2
(cherry picked from commit ac0acd569e01735fc6052d43fdf57f3a07c93f3d)
-rw-r--r--src/time/strftime.c1
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;