diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-16 17:43:41 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-16 17:43:41 +0100 |
commit | 62ce6dc4e8599d24ecf1b55de5d051ddc6f5ddfe (patch) | |
tree | 1f5d2dfc8e37ce2931a97289ac7fe13d00de3850 /FICS/eco.c | |
parent | c7006ed5f5300a473fb917019f74b1bbc5742ae6 (diff) |
Fixed compiler warning
Diffstat (limited to 'FICS/eco.c')
-rw-r--r-- | FICS/eco.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -192,12 +192,12 @@ void NIC_init() { FILE *fp; - char *ptmp = tmp; char FENpos[73]; char NIC[6]; char filename[1024]; char onMove[2]; char tmp[1024]; + char *ptmp = tmp; int i = 0; sprintf(filename, "%s/nic999.idx", book_dir); @@ -215,7 +215,8 @@ NIC_init() continue; sscanf(ptmp, "%[\x21-z] %s", FENpos, onMove); - sprintf(FENpos, "%s %s", FENpos, onMove); + strcat(FENpos, " "); + strcat(FENpos, onMove); strcpy(ptmp, ""); fgets(ptmp, 1024, fp); |