Fix a stack exhausion bug

This commit is contained in:
Jack Garrard 2022-10-26 02:43:02 -07:00
parent 4655b0755e
commit a9c3ec4006

View file

@ -199,7 +199,7 @@ bool SocketClient::recv() {
}
int headerSize = sizeof(Packet);
char headerBuf[MAXPACKSIZE * 2] = {};
char headerBuf[MAXPACKSIZE + 1] = {0};
int valread = 0;
const int fd_count = 2;