diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 02:00:53 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 02:00:53 +0100 |
commit | 617a0f3c1d1f625c7a7b82efdf6b970715cd7bcc (patch) | |
tree | 8d0f75e152366c09fb5bad08f8a830c78b75fd7f /FICS/eco.c | |
parent | eae7d0b9e25648ed6d9d9e990f176570b11386b5 (diff) |
Initialization
Diffstat (limited to 'FICS/eco.c')
-rw-r--r-- | FICS/eco.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -111,10 +111,10 @@ ECO_init(void) { FILE *fp; char ECO[4]; - char FENpos[73]; - char filename[1024]; + char FENpos[73] = { '\0' }; + char filename[1024] = { '\0' }; char onMove[2]; - char tmp[1024]; + char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -173,11 +173,11 @@ PUBLIC void NIC_init(void) { FILE *fp; - char FENpos[73]; + char FENpos[73] = { '\0' }; char NIC[6]; - char filename[1024]; + char filename[1024] = { '\0' }; char onMove[2]; - char tmp[1024]; + char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -228,11 +228,11 @@ PUBLIC void LONG_init(void) { FILE *fp; - char FENpos[73]; - char LONG[256]; - char filename[1024]; + char FENpos[73] = { '\0' }; + char LONG[256] = { '\0' }; + char filename[1024] = { '\0' }; char onMove[2]; - char tmp[1024]; + char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; |