Return to client-msg.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.1, 2009/06/01 22:58:49 | version 1.2, 2009/06/02 11:17:03 | ||
---|---|---|---|
|
|
||
int | int | ||
client_msg_fn_error(struct hdr *hdr, struct client_ctx *cctx, char **error) | client_msg_fn_error(struct hdr *hdr, struct client_ctx *cctx, char **error) | ||
{ | { | ||
if (hdr->size > SIZE_MAX - 1) | if (hdr->size == SIZE_MAX) | ||
fatalx("bad MSG_ERROR size"); | fatalx("bad MSG_ERROR size"); | ||
*error = xmalloc(hdr->size + 1); | *error = xmalloc(hdr->size + 1); |