summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;