1 $NetBSD: patch-al,v 1.1 2007/05/22 16:47:04 lkundrak Exp $
3 Fix for http://www.eggheads.org/bugzilla/show_bug.cgi?id=462
5 --- src/mod/irc.mod/chan.c.orig 2006-03-28 02:35:51.000000000 +0000
6 +++ src/mod/irc.mod/chan.c
7 @@ -2211,7 +2211,8 @@ static int gotmsg(char *from, char *msg)
8 return 0; /* Unknown channel; don't process. */
11 - strcpy(uhost, from);
12 + strncpy(uhost, from, UHOSTMAX);
13 + uhost[UHOSTMAX] = '\0';
14 nick = splitnick(&uhost);
15 ignoring = match_ignore(from);
16 /* Only check if flood-ctcp is active */