aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-30 02:07:57 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-30 02:07:57 +0100
commit7d7654025ce933ba38c4e3d6cd3f54c040609f73 (patch)
tree02fb06f452726016b9556c697ae55cd6ea19103b
parentd19844f871a4158829c67694d6c5091e470bba25 (diff)
Replaced strcat() calls
-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);