From c492e45a4f044c2ac85a321ae3d520ede8f7fdff Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 7 Mar 2026 23:42:03 +0100 Subject: fix_time: set 'new_time' to zero --- FICS/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FICS/utils.c b/FICS/utils.c index de020e6..04e275c 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -851,7 +851,7 @@ fix_time(const char *old_time) char day[5] = { '\0' }; char i; char month[5] = { '\0' }; - static char new_time[20]; + static char new_time[20] = { '\0' }; _Static_assert(4 < ARRAY_SIZE(day), "'day' too small"); _Static_assert(4 < ARRAY_SIZE(month), "'month' too small"); -- cgit v1.2.3