From 456aaf6eea2cdcd7b31889a06da5c65a417c29d2 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 22:20:19 +0100 Subject: ReadV1PlayerFmt: initialized 'tmp2' --- FICS/playerdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FICS/playerdb.c b/FICS/playerdb.c index a4142de..7ee4834 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -346,7 +346,7 @@ void ReadV1PlayerFmt(int p, player *pp, FILE *fp, char *file, int version) { char *tmp; - char tmp2[MAX_STRING_LENGTH]; + char tmp2[MAX_STRING_LENGTH] = { '\0' }; int bs, ss, ws, ls, bugs; int i, size_cens, size_noplay, size_not, size_gnot, size_chan, len; -- cgit v1.2.3