aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-07 23:39:01 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-07 23:39:01 +0100
commit0874b7f8953d87e50774d644c341496324c8733a (patch)
tree52811232c03548012fa3530537935dca96bbe344 /FICS
parent5a3df2f6bd2e9a40be8774d111988b2265c27f3e (diff)
fix_time: switched to the usage of msnprintf()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c3
1 files changed, 2 insertions, 1 deletions
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];
}