From 57333d71e92d618e48f70b1de70851b958315bfe Mon Sep 17 00:00:00 2001 From: Jack Garrard Date: Thu, 27 Oct 2022 04:52:27 -0700 Subject: [PATCH] Fix recv buf size calculation --- source/server/SocketClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server/SocketClient.cpp b/source/server/SocketClient.cpp index c3ff1b9..65a4f53 100644 --- a/source/server/SocketClient.cpp +++ b/source/server/SocketClient.cpp @@ -235,7 +235,7 @@ bool SocketClient::recv() { } if (index == 1) { - int result = nn::socket::Recv(fd, recvBuf, sizeof(MAXPACKSIZE), this->sock_flags); + int result = nn::socket::Recv(fd, recvBuf, MAXPACKSIZE, this->sock_flags); if (result < headerSize){ return true; }