- scan.c:scan_irckline(): highly unlikely that strlcat() is first to write to 'messag...
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Wed, 8 Jul 2015 13:49:25 +0000 (13:49 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Wed, 8 Jul 2015 13:49:25 +0000 (13:49 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6238 82007160-df01-0410-b94d-b575c5fd34c7

src/scan.c

index 845793fd403ca03f6e53de001784592f37e24121..a1b3fa5c1503b96bd72f3f81c4d9578da9dee68e 100644 (file)
@@ -771,7 +771,7 @@ scan_negative(const struct scan_struct *ss)
 static void
 scan_irckline(const struct scan_struct *ss, const char *format, const char *type)
 {
-  char message[MSGLENMAX];  /* OUTPUT */
+  char message[MSGLENMAX] = "";  /* OUTPUT */
 
   unsigned int pos = 0;   /* position in format */
   unsigned int len = 0;   /* position in message */