Return to msg.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.3, 2002/06/24 15:49:22 | version 1.4, 2002/07/01 16:15:25 | ||
---|---|---|---|
|
|
||
} | } | ||
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); |