diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-04-29 01:09:01 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-04-29 01:09:01 +0200 |
commit | c4b2817201123a826cc35b670da3142f842f13c1 (patch) | |
tree | 677b14ab649beaff74cb149105d5a8c5b6ed824b /FICS/obsproc.c | |
parent | 3166f5d60746233f150618ac77794b842789c905 (diff) |
Fixed compiler warning
Diffstat (limited to 'FICS/obsproc.c')
-rw-r--r-- | FICS/obsproc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |