mirror of
https://github.com/anope/anope.git
synced 2026-06-26 03:06:38 +02:00
Bug #1283 - Upped the buffer used for messge replies, as some can be really big
This commit is contained in:
+2
-2
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user