summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-19 23:19:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-19 23:19:23 +0000
commit17fe68de7265f7bb1007255d80eb3d310ebd4e53 (patch)
tree8abec665d789ca0eccdbfc94ba5533f132c6603b /src/userprocess.cpp
parent6a016cb0a6ba93d30fdd16edab1774273d036d69 (diff)
Fix the 4-byte read madness discovered by psychon
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10045 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index ca151520c..91dd9f76a 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -53,7 +53,7 @@ void ProcessUserHandler::Call(User* cu)
try
{
- MOD_RESULT = cu->io->OnRawSocketRead(cu->GetFd(),ReadBuffer,Server->Config->NetBufferSize,result2);
+ MOD_RESULT = cu->io->OnRawSocketRead(cu->GetFd(), ReadBuffer, Server->Config->NetBufferSize, result2);
}
catch (CoreException& modexcept)
{
@@ -71,7 +71,7 @@ void ProcessUserHandler::Call(User* cu)
}
else
{
- result = cu->ReadData(ReadBuffer, sizeof(ReadBuffer));
+ result = cu->ReadData(ReadBuffer, Server->Config->NetBufferSize);
}
if ((result) && (result != -EAGAIN))