From 62ce6dc4e8599d24ecf1b55de5d051ddc6f5ddfe Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 16 Dec 2023 17:43:41 +0100 Subject: Fixed compiler warning --- FICS/eco.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'FICS') 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); -- cgit v1.2.3