diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 02:07:57 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 02:07:57 +0100 |
commit | 7d7654025ce933ba38c4e3d6cd3f54c040609f73 (patch) | |
tree | 02fb06f452726016b9556c697ae55cd6ea19103b /FICS | |
parent | d19844f871a4158829c67694d6c5091e470bba25 (diff) |
Replaced strcat() calls
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/eco.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |