diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-01 14:57:17 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-01 14:57:17 +0200 |
commit | 3b4cea758d73f6488d8c1c79c4ee448ed3622e0e (patch) | |
tree | ec1fd35fc9524aa9a391fceb3ce6b62feee9d297 /FICS | |
parent | 4c0299811690afa341076b08cbb2a0394891aaed (diff) |
Replaced unsafe strcat() calls
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/command.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/command.c b/FICS/command.c index dacd382..3e85169 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -190,14 +190,14 @@ alias_substitute(alias_type *alias_list, int num_alias, char *com_str, if (atpos != NULL) { strncpy(outalias, aliasval, atpos - aliasval); outalias[atpos - aliasval] = '\0'; - strcat(outalias, s); - strcat(outalias, atpos + 1); + mstrlcat(outalias, s, size); + mstrlcat(outalias, atpos + 1, size); } else { mstrlcpy(outalias, aliasval, size); if (*s) { - strcat(outalias, " "); - strcat(outalias, s); + mstrlcat(outalias, " ", size); + mstrlcat(outalias, s, size); } } } |