aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-04 14:21:57 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-04 14:21:57 +0200
commite73d8b165e876dc772508e39b4edfa40edf4bfb0 (patch)
tree25c8f7fe12b7261540d1166b230ba43888470b81 /FICS
parentd040b0d2e3a34246bb8f5b9b90414c31f24d5a4a (diff)
Moved 'gameString'
Diffstat (limited to 'FICS')
-rw-r--r--FICS/gamedb.c16
1 files changed, 10 insertions, 6 deletions
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;