From 7d7654025ce933ba38c4e3d6cd3f54c040609f73 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 30 Mar 2024 02:07:57 +0100 Subject: Replaced strcat() calls --- FICS/eco.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'FICS') diff --git a/FICS/eco.c b/FICS/eco.c index a389617..3c38445 100644 --- a/FICS/eco.c +++ b/FICS/eco.c @@ -138,8 +138,8 @@ ECO_init(void) /* XXX */ sscanf(ptmp, "%[\x21-z] %s", FENpos, onMove); - strcat(FENpos, " "); - strcat(FENpos, onMove); + (void) strlcat(FENpos, " ", sizeof FENpos); + (void) strlcat(FENpos, onMove, sizeof FENpos); (void) strlcpy(ptmp, "", sizeof tmp); fgets(ptmp, 1024, fp); @@ -202,8 +202,8 @@ NIC_init(void) continue; sscanf(ptmp, "%[\x21-z] %s", FENpos, onMove); - strcat(FENpos, " "); - strcat(FENpos, onMove); + (void) strlcat(FENpos, " ", sizeof FENpos); + (void) strlcat(FENpos, onMove, sizeof FENpos); (void) strlcpy(ptmp, "", sizeof tmp); fgets(ptmp, 1024, fp); @@ -260,8 +260,8 @@ LONG_init(void) /* XXX */ sscanf(ptmp, "%[\x21-z] %s", FENpos, onMove); - strcat(FENpos, " "); - strcat(FENpos, onMove); + (void) strlcat(FENpos, " ", sizeof FENpos); + (void) strlcat(FENpos, onMove, sizeof FENpos); (void) strlcpy(ptmp, "", sizeof tmp); fgets(ptmp, 1024, fp); -- cgit v1.2.3