Skip to content

Commit

Permalink
Fixed wrong size of struct winsize.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoto2000 authored and Biswa96 committed Nov 29, 2024
1 parent 7fd4474 commit a7162d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wslbridge2-backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7162d8

Please sign in to comment.