diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-05-08 19:04:48 +0200 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2014-05-08 19:04:48 +0200 |
commit | ac0acd569e01735fc6052d43fdf57f3a07c93f3d (patch) | |
tree | 740b4000e41b0d9906dbfa03f23a45f82df648e0 /src/time | |
parent | adbf0258be4eea5f012e173de7e55a87f3093669 (diff) | |
download | musl-ac0acd569e01735fc6052d43fdf57f3a07c93f3d.tar.gz |
fix strftime %s not to zero pad with default width=2
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; |