aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-14 15:00:09 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-14 15:00:09 +0200
commitd5aeef85d35135d882393620930d910e3893c033 (patch)
treea18a4514d43219e9b0031ae78993a838fea5f227
parent714a8099f85c7946d829c552247e5c64db3c1617 (diff)
com_qtell: replaced the strcpy() calls
-rw-r--r--FICS/talkproc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c
index d9dd8ec..143da06 100644
--- a/FICS/talkproc.c
+++ b/FICS/talkproc.c
@@ -968,10 +968,10 @@ com_qtell(int p, param_list param)
return COM_OK;
}
- strcpy(buffer1, ":\0");
- strcpy(buffer2, ":\0");
- strcpy(buffer3, ":\0");
- strcpy(buffer4, ":\0");
+ mstrlcpy(buffer1, ":\0", sizeof buffer1);
+ mstrlcpy(buffer2, ":\0", sizeof buffer2);
+ mstrlcpy(buffer3, ":\0", sizeof buffer3);
+ mstrlcpy(buffer4, ":\0", sizeof buffer4);
msnprintf(tmp, sizeof tmp, "%s", param[1].val.string);