From 924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 10 Jul 2011 19:32:10 -0400 Subject: Bug #1283 - Upped the buffer used for messge replies, as some can be really big --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index cb39ba926..f13be6ee5 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -11,12 +11,12 @@ void CommandSource::Reply(const char *message, ...) { va_list args; - char buf[BUFSIZE] = ""; + char buf[4096]; // Messages can be really big. if (message) { va_start(args, message); - vsnprintf(buf, BUFSIZE - 1, message, args); + vsnprintf(buf, sizeof(buf), message, args); this->Reply(Anope::string(buf)); -- cgit