aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/eco.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/eco.c')
-rw-r--r--FICS/eco.c12
1 files changed, 6 insertions, 6 deletions
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);