From 577e0c1c0468a2d1939f720ff39e648a0e348e0a Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Wed, 21 Aug 2024 16:12:36 +0200 Subject: [PATCH] Fix strftime(3) %s. --- libc/time/strftime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/time/strftime.c b/libc/time/strftime.c index 73ce96be..1e0badee 100644 --- a/libc/time/strftime.c +++ b/libc/time/strftime.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, 2021 Jonas 'Sortie' Termansen. + * Copyright (c) 2013, 2014, 2021, 2024 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -295,6 +295,7 @@ size_t STRFTIME(STRFTIME_CHAR* s, STRFTIME_CHAR str[sizeof(intmax_t) * 3]; strftime_convert_intmax(str, timestamp); OUTPUT_STRING(str); + break; } case STRFTIME_L('S'): OUTPUT_INT_PADDED(tm->tm_sec, 2, STRFTIME_L('0')); break; /*O*/ case STRFTIME_L('t'): OUTPUT_CHAR(STRFTIME_L('\t')); break;