aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/command.c8
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);
}
}
}