diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:03:16 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:03:16 +0800 |
commit | 7b2de21f202d61f20a15d5298fd1f0d0fff19833 (patch) | |
tree | 4876e2f05a21d6c70bca69b51b5a138612649dd7 /mbbsd/chat.c | |
parent | 33572d8938bb9c494ae1df5675fec339c51e2501 (diff) | |
download | pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.tar pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.tar.gz pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.tar.bz2 pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.tar.lz pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.tar.xz pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.tar.zst pttbbs-7b2de21f202d61f20a15d5298fd1f0d0fff19833.zip |
replace strcat with strlcat
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2655 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r-- | mbbsd/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |