diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-03 20:12:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-03 20:12:47 +0000 |
commit | a83a728b91e3274ec5d367fa33b6f86b2292670d (patch) | |
tree | 58ce856581206a54ca8182425b2e9b3a370a42e8 /src/connection.cpp | |
parent | 0fa6fadb9c48dc7d9f705517d9bf1cfbd79d2209 (diff) |
Fix annoying off-by-one error in connection::RecvPacket (nothing like driving to calm the mind :p)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1298 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index debd3144f..6302b1e7e 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -509,7 +509,7 @@ bool connection::RecvPacket(std::deque<std::string> &messages, char* recvhost) int ret = poll(&polls,1,1); if (ret <= 0) continue; - rcvsize = recv(this->connectors[i].GetDescriptor(),data,4096,0); + rcvsize = recv(this->connectors[i].GetDescriptor(),data,4090,0); data[rcvsize] = '\0'; if (rcvsize == -1) { |