summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp2
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)
{