summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
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))