From daa68cffe0b8231864dab7a89c72faececc00b3c Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 4 May 2005 12:57:35 +0000 Subject: Fix to a mode parsing bug (eating wrong version of parameter?) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1304 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 6302b1e7e..d42dea179 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -492,8 +492,8 @@ bool connection::SendPacket(char *message, const char* sendhost) bool connection::RecvPacket(std::deque &messages, char* recvhost) { - char data[4096]; - memset(data, 0, 4096); + char data[65536]; + memset(data, 0, 65536); for (int i = 0; i < this->connectors.size(); i++) { if (this->connectors[i].GetState() != STATE_DISCONNECTED) @@ -509,7 +509,7 @@ bool connection::RecvPacket(std::deque &messages, char* recvhost) int ret = poll(&polls,1,1); if (ret <= 0) continue; - rcvsize = recv(this->connectors[i].GetDescriptor(),data,4090,0); + rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0); data[rcvsize] = '\0'; if (rcvsize == -1) { -- cgit v1.3.1-10-gc9f91