From 7b2de21f202d61f20a15d5298fd1f0d0fff19833 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 19 Mar 2005 13:03:16 +0000 Subject: replace strcat with strlcat git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2655 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/chat.c') diff --git a/mbbsd/chat.c b/mbbsd/chat.c index fc91a379..612611c7 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -134,8 +134,8 @@ printuserent(const userinfo_t * uentp) uentp->invisible ? '#' : ' ', modestring(uentp, 1)); if (cnt < 2) - strcat(pline, "¢x"); - strcat(uline, pline); + strlcat(pline, "¢x", sizeof(pline)); + strlcat(uline, pline, sizeof(uline)); if (++cnt == 3) { printchatline(uline); memset(uline, 0, 80); -- cgit v1.2.3