aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/eco.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-16 17:43:41 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-16 17:43:41 +0100
commit62ce6dc4e8599d24ecf1b55de5d051ddc6f5ddfe (patch)
tree1f5d2dfc8e37ce2931a97289ac7fe13d00de3850 /FICS/eco.c
parentc7006ed5f5300a473fb917019f74b1bbc5742ae6 (diff)
Fixed compiler warning
Diffstat (limited to 'FICS/eco.c')
-rw-r--r--FICS/eco.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/eco.c b/FICS/eco.c
index 7777606..1f6870a 100644
--- a/FICS/eco.c
+++ b/FICS/eco.c
@@ -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);