Fix recv buf size calculation

This commit is contained in:
Jack Garrard 2022-10-27 04:52:27 -07:00
parent 4171390f42
commit 57333d71e9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}