Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 06dcac80020b031ae1ebcc066526c3c0 > files > 3

eggdrop-1.6.19-2.1mdv2009.0.src.rpm

--- src/mod/server.mod/servmsg.c	2009-06-01 02:56:49.000000000 -0400
+++ src/mod/server.mod/servmsg.c.oden	2009-06-01 02:56:57.000000000 -0400
@@ -488,9 +488,9 @@ static int gotmsg(char *from, char *msg)
       *p = 0;
       strncpyz(ctcpbuf, p1, sizeof(ctcpbuf));
       ctcp = ctcpbuf;
-      /* copy the part after the second : in front of it after
-       * the first :, this is temporary copied to ctcpbuf */
-      strncpy(p1 - 1, p + 1, strlen(ctcpbuf) - 1);
+
+      /* remove the ctcp in msg */
+      memmove(p1 - 1, p + 1, strlen(p + 1) + 1);
 
       if (!ignoring)
         detect_flood(nick, uhost, from,