From 0874b7f8953d87e50774d644c341496324c8733a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 7 Mar 2026 23:39:01 +0100 Subject: fix_time: switched to the usage of msnprintf() --- FICS/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FICS') diff --git a/FICS/utils.c b/FICS/utils.c index 20aae1a..50b31de 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -865,9 +865,10 @@ fix_time(char *old_time) date[0] = '0'; date[1] = i; } + date[2] = '\0'; - snprintf(new_time, sizeof new_time, "%s, %s %s", day, month, date); + msnprintf(new_time, sizeof new_time, "%s, %s %s", day, month, date); return &new_time[0]; } -- cgit v1.2.3