From 8e80a883eb173daf90368f06e72a8a0772141ee6 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 15 Mar 2025 12:59:54 +0100 Subject: jsave_history: initialization --- FICS/obsproc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS/obsproc.c') diff --git a/FICS/obsproc.c b/FICS/obsproc.c index dc47cbe..c916c0f 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -1815,10 +1815,10 @@ jsave_history(int p, char save_spot, int p1, int from, char *to_file) char *EndSymbol; char *HistoryFname; char *name_to = parray[p].login; - char End[100]; - char command[MAX_FILENAME_SIZE * 2 + 3]; + char End[100] = { '\0' }; + char command[MAX_FILENAME_SIZE * 2 + 3] = { '\0' }; char filename[MAX_FILENAME_SIZE + 1] = { '\0' }; // XXX - char jfname[MAX_FILENAME_SIZE]; + char jfname[MAX_FILENAME_SIZE] = { '\0' }; char type[4]; int g; -- cgit v1.2.3