summaryrefslogtreecommitdiff
path: root/src/time/strftime.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-05-08 19:04:48 +0200
committerSzabolcs Nagy <nsz@port70.net>2014-05-08 19:04:48 +0200
commitac0acd569e01735fc6052d43fdf57f3a07c93f3d (patch)
tree740b4000e41b0d9906dbfa03f23a45f82df648e0 /src/time/strftime.c
parentadbf0258be4eea5f012e173de7e55a87f3093669 (diff)
downloadmusl-ac0acd569e01735fc6052d43fdf57f3a07c93f3d.tar.gz
musl-ac0acd569e01735fc6052d43fdf57f3a07c93f3d.tar.bz2
musl-ac0acd569e01735fc6052d43fdf57f3a07c93f3d.tar.xz
musl-ac0acd569e01735fc6052d43fdf57f3a07c93f3d.zip
fix strftime %s not to zero pad with default width=2
Diffstat (limited to 'src/time/strftime.c')
-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;