diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-03-14 21:59:12 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-03-14 21:59:12 +0100 |
| commit | 107188791013b9d84db62f2441ae7fe449ec373e (patch) | |
| tree | c273f52b28c18a6d64ac51c9a7ffe2f2acfdb8e3 /FICS | |
| parent | 56c6d138e9f2739c3af240f4d513396f7413aa78 (diff) | |
Set arrays to zero
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/playerdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 50932c7..40f4e79 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -2813,8 +2813,8 @@ PRIVATE int LoadMsgs(int p, int which, textlist **Head) { FILE *fp; - char fName[MAX_FILENAME_SIZE]; - char line[MAX_LINE_SIZE]; + char fName[MAX_FILENAME_SIZE] = { '\0' }; + char line[MAX_LINE_SIZE] = { '\0' }; int n = 0, nSave = 0; textlist** Cur = Head; @@ -2845,8 +2845,8 @@ PRIVATE int LoadMsgRange(int p, int start, int end, textlist **Head) { FILE *fp; - char fName[MAX_FILENAME_SIZE]; - char line[MAX_LINE_SIZE]; + char fName[MAX_FILENAME_SIZE] = { '\0' }; + char line[MAX_LINE_SIZE] = { '\0' }; int n = 1, nSave = 0, nKill = 0; textlist** Cur = Head; |
