summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-03-25 16:49:25 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2014-03-25 16:49:25 +0000
commit9e24c00bae4e0785309881b60a330b526a99e895 (patch)
tree8dacaa723ba275215a2ffd9e19493a11d41029ae /modules
parent845cd91c05bcdecc3e356ef5502df03fe07a4286 (diff)
- Backported -r3213 [m_watch.c:m_watch(): replaced all strcat() with strlcat()]
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3214 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/m_watch.c b/modules/m_watch.c
index 32a8f5f..1c84613 100644
--- a/modules/m_watch.c
+++ b/modules/m_watch.c
@@ -187,8 +187,8 @@ m_watch(struct Client *client_p, struct Client *source_p, int parc, char *parv[]
count = strlen(source_p->name) + strlen(me.name) + 10;
}
- strcat(buf, " ");
- strcat(buf, anptr->nick);
+ strlcat(buf, " ", sizeof(buf));
+ strlcat(buf, anptr->nick, sizeof(buf));
count += (strlen(anptr->nick) + 1);
}