Return to msg.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.2.2.2, 2002/06/26 18:22:35 | version 1.2.2.3, 2002/10/11 14:53:06 | ||
---|---|---|---|
|
|
||
} | } | ||
msg_len = GET_32BIT(buf); | msg_len = GET_32BIT(buf); | ||
if (msg_len > 256 * 1024) | if (msg_len > 256 * 1024) | ||
fatal("msg_recv: read: bad msg_len %d", msg_len); | fatal("msg_recv: read: bad msg_len %u", msg_len); | ||
buffer_clear(m); | buffer_clear(m); | ||
buffer_append_space(m, msg_len); | buffer_append_space(m, msg_len); | ||
res = atomicio(read, fd, buffer_ptr(m), msg_len); | res = atomicio(read, fd, buffer_ptr(m), msg_len); |