From 6b29769919014bb201d77b8fa7126408007ea2d0 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 22 Dec 2014 14:32:01 +0000 Subject: [PATCH] - irc.c:irc_parse(): replaced strcpy() with strlcpy() git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5066 82007160-df01-0410-b94d-b575c5fd34c7 --- src/irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index 8fcccad..a34d60c 100644 --- a/src/irc.c +++ b/src/irc.c @@ -564,7 +564,7 @@ static void irc_parse(void) time(&IRC_LAST); /* Store a copy of IRC_RAW for the handlers (for functions that need PROOF) */ - strcpy(msg, IRC_RAW); + strlcpy(msg, IRC_RAW, sizeof(msg)); /* parv[0] is always the source */ if(IRC_RAW[0] == ':') -- 2.30.2