Fix bug with command lengths over 127 from @Will-W

This commit is contained in:
FlUxIuS 2023-01-06 11:55:14 +01:00
parent c85cc77113
commit 19a4966bff

View file

@ -202,7 +202,7 @@ void Parser::cliServer()
close(i);
continue; // go to next socket
}
if (len < (int) sizeof(len)) // should never get here
if (nread < (int) sizeof(len)) // should never get here
{
char buf[BUFSIZ];
sprintf(buf, "Unable to read complete length, s.b. %d bytes, got %d bytes\n", sizeof(len), len);