From a68606677e0d7f65c14ce7247b65f1b126b1c2d6 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 8 Jul 2015 13:49:25 +0000 Subject: [PATCH] - scan.c:scan_irckline(): highly unlikely that strlcat() is first to write to 'message', but initialize it anyway git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.1.x@6238 82007160-df01-0410-b94d-b575c5fd34c7 --- src/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan.c b/src/scan.c index 845793f..a1b3fa5 100644 --- a/src/scan.c +++ b/src/scan.c @@ -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 */ -- 2.30.2