From c4b2817201123a826cc35b670da3142f842f13c1 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 29 Apr 2024 01:09:01 +0200 Subject: Fixed compiler warning --- FICS/obsproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 3d84ab7..ec52a32 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -1793,10 +1793,10 @@ jsave_history(int p, char save_spot, int p1, int from, char *to_file) FILE *Game; char *EndSymbol; char *HistoryFname; - char *filename[MAX_FILENAME_SIZE + 1]; char *name_to = parray[p].login; char End[100]; char command[MAX_FILENAME_SIZE * 2 + 3]; + char filename[MAX_FILENAME_SIZE + 1] = { '\0' }; // XXX char jfname[MAX_FILENAME_SIZE]; char type[4]; int g; @@ -1827,6 +1827,7 @@ jsave_history(int p, char save_spot, int p1, int from, char *to_file) g = game_new(); // Open a dummy game + // XXX: is 'filename' right here? if (ReadGameAttrs(Game, filename, g) < 0) { pprintf(p, "Gamefile is corrupt. Please tell " "an admin.\n"); -- cgit v1.2.3