summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-07-10 19:32:10 -0400
committerAdam <Adam@anope.org>2011-07-10 19:32:10 -0400
commit924f6849fee4598a1a3a7f1a98d96b79e5ffd3b4 (patch)
treec066fc1fab05dbd8d3a92c7c6d79a499802b71b2
parentb5ec57a3f9fdc9e7c7321392082dec0d475c623c (diff)
Bug #1283 - Upped the buffer used for messge replies, as some can be really big
-rw-r--r--src/command.cpp4
1 files changed, 2 insertions, 2 deletions
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));