From e73d8b165e876dc772508e39b4edfa40edf4bfb0 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 4 May 2024 14:21:57 +0200 Subject: Moved 'gameString' --- FICS/gamedb.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'FICS/gamedb.c') diff --git a/FICS/gamedb.c b/FICS/gamedb.c index 0d7751c..a498185 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -42,9 +42,17 @@ #include "rmalloc.h" #include "utils.h" +/* + * This should be enough to hold any game up to at least 250 moves. If + * we overwrite this, the server will crash. + */ +#define GAME_STRING_LEN 16000 + PUBLIC game *garray = NULL; PUBLIC int g_num = 0; +PRIVATE char gameString[GAME_STRING_LEN]; + PRIVATE int get_empty_slot() /* this method is awful! how about allocation as we need it and freeing afterwards! */ @@ -444,12 +452,8 @@ PUBLIC char *EndSym(int g) return (symbols[3]); } -/* This should be enough to hold any game up to at least 250 moves - * If we overwrite this, the server will crash. - */ -#define GAME_STRING_LEN 16000 -PRIVATE char gameString[GAME_STRING_LEN]; -PUBLIC char *movesToString(int g, int pgn) +PUBLIC char * +movesToString(int g, int pgn) { char tmp[160]; int wr, br; -- cgit v1.2.3