From 0af849cc0518d77af431ce4b120f0978fbd126a2 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 25 Jul 2010 03:27:26 -0400 Subject: Backported changes to inspircd20.cpp from 1.9 --- src/process.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/process.c') diff --git a/src/process.c b/src/process.c index b593b0d88..593933fb0 100644 --- a/src/process.c +++ b/src/process.c @@ -284,14 +284,13 @@ int split_buf(char *buf, const char ***argv, int colon_special) void process(const std::string &buffer) { int retVal = 0; - Message *current = NULL; - char source[64]; - char cmd[64]; - char buf[512]; /* Longest legal IRC command line */ + char source[64] = ""; + char cmd[64] = ""; + char buf[1024] = ""; // XXX InspIRCd 2.0 can send messages longer than 512 characters to servers... how disappointing. char *s; int ac; /* Parameters for the command */ const char **av; - Message *m; + Message *m, *current = NULL; /* zero out the buffers before we do much else */ *buf = '\0'; -- cgit