diff --git a/src/wslbridge2-backend.cpp b/src/wslbridge2-backend.cpp index e3b3ad2..cd81e4a 100755 --- a/src/wslbridge2-backend.cpp +++ b/src/wslbridge2-backend.cpp @@ -256,9 +256,9 @@ int main(int argc, char *argv[]) s++; len--; // ensure 8 more bytes are loaded for winsize - while (readRet > 0 && len < 16) + while (readRet > 0 && len < 8) { - readRet = recv(ioSockets.inputSock, s + len, 16 - len, 0); + readRet = recv(ioSockets.inputSock, s + len, 8 - len, 0); if (readRet > 0) { len += readRet;