diff options
-rw-r--r-- | FICS/eco.c | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -21,6 +21,9 @@ #include <bsd/string.h> #endif +#define FENPOS_SIZE 73 +#define ONMOVE_SIZE 2 + PRIVATE char *book_dir = DEFAULT_BOOK; PRIVATE ECO_entry *ECO_book[1096]; @@ -121,9 +124,9 @@ ECO_init(void) { FILE *fp; char ECO[4] = {0,0,0,0}; - char FENpos[73] = { '\0' }; + char FENpos[FENPOS_SIZE] = { '\0' }; char filename[1024] = { '\0' }; - char onMove[2] = {0,0}; + char onMove[ONMOVE_SIZE] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -180,10 +183,10 @@ PUBLIC void NIC_init(void) { FILE *fp; - char FENpos[73] = { '\0' }; + char FENpos[FENPOS_SIZE] = { '\0' }; char NIC[6] = {0,0,0,0,0,0}; char filename[1024] = { '\0' }; - char onMove[2] = {0,0}; + char onMove[ONMOVE_SIZE] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -232,10 +235,10 @@ PUBLIC void LONG_init(void) { FILE *fp; - char FENpos[73] = { '\0' }; + char FENpos[FENPOS_SIZE] = { '\0' }; char LONG[256] = { '\0' }; char filename[1024] = { '\0' }; - char onMove[2] = {0,0}; + char onMove[ONMOVE_SIZE] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; |