diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 23:39:01 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 23:39:01 +0100 |
| commit | 0874b7f8953d87e50774d644c341496324c8733a (patch) | |
| tree | 52811232c03548012fa3530537935dca96bbe344 | |
| parent | 5a3df2f6bd2e9a40be8774d111988b2265c27f3e (diff) | |
fix_time: switched to the usage of msnprintf()
| -rw-r--r-- | FICS/utils.c | 3 |
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]; } |
