Fixed more bugs

pull/180/head
Ryzerth 2021-07-19 20:51:17 +02:00
rodzic 4b43da095e
commit c9f1ec0a8a
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -93,8 +93,7 @@ namespace spyserver {
SpyServerClientClass* _this = (SpyServerClientClass*)ctx;
if (count < sizeof(SpyServerMessageHeader)) {
printf("ERROR: Incomplete message header\n");
return;
_this->readSize(sizeof(SpyServerMessageHeader)-count, &buf[count]);
}
int size = _this->readSize(_this->receivedHeader.BodySize, _this->readBuf);