diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 23:42:03 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-07 23:42:03 +0100 |
| commit | c492e45a4f044c2ac85a321ae3d520ede8f7fdff (patch) | |
| tree | f90d9aecb7be28d5ca6fc0ff4ac916a5a5eb2a60 | |
| parent | ffe9c6bc1e4fbbae829f3867187aeab4ef075c38 (diff) | |
fix_time: set 'new_time' to zero
| -rw-r--r-- | FICS/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
