mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-24 20:25:18 +00:00
Fix a stack exhausion bug
This commit is contained in:
parent
4655b0755e
commit
a9c3ec4006
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue