Return to client.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.135, 2019/12/16 15:48:50 | version 1.136, 2019/12/16 16:09:28 | ||
---|---|---|---|
|
|
||
if (bsize == 0) | if (bsize == 0) | ||
break; | break; | ||
if (bsize > MAX_IMSGSIZE - IMSG_HEADER_SIZE) | if (bsize > MAX_IMSGSIZE - IMSG_HEADER_SIZE - sizeof *msg) | ||
bsize = MAX_IMSGSIZE - IMSG_HEADER_SIZE; | bsize = MAX_IMSGSIZE - IMSG_HEADER_SIZE - sizeof *msg; | ||
log_debug("read %zu from file %d", bsize, cf->stream); | log_debug("read %zu from file %d", bsize, cf->stream); | ||
msglen = (sizeof *msg) + bsize; | msglen = (sizeof *msg) + bsize; |