aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2013-05-17 01:34:25 +0100
committerGravatar Peter Powell2013-06-06 00:41:07 +0100
commit047e29179766076146e7bd6126a883f4f3c95150 (patch)
treee3a5d78b9aaf4631ce0bbd6b46704ff00e8bb5a3 /src/users.cpp
parentStart to replace MAXBUF with <limits:maxline>. (diff)
Reserve ServerLimits::MaxLine instead of MAXBUF.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 44834330b..656d260e1 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -428,7 +428,7 @@ void UserIOHandler::OnDataReady()
while (user->CommandFloodPenalty < penaltymax && getSendQSize() < sendqmax)
{
std::string line;
- line.reserve(MAXBUF);
+ line.reserve(ServerInstance->Config->Limits.MaxLine);
std::string::size_type qpos = 0;
while (qpos < recvq.length())
{