=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/client-msg.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/tmux/Attic/client-msg.c 2009/06/01 22:58:49 1.1 --- src/usr.bin/tmux/Attic/client-msg.c 2009/06/02 11:17:03 1.2 *************** *** 1,4 **** ! /* $OpenBSD: client-msg.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: client-msg.c,v 1.2 2009/06/02 11:17:03 ray Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 73,79 **** int client_msg_fn_error(struct hdr *hdr, struct client_ctx *cctx, char **error) { ! if (hdr->size > SIZE_MAX - 1) fatalx("bad MSG_ERROR size"); *error = xmalloc(hdr->size + 1); --- 73,79 ---- int client_msg_fn_error(struct hdr *hdr, struct client_ctx *cctx, char **error) { ! if (hdr->size == SIZE_MAX) fatalx("bad MSG_ERROR size"); *error = xmalloc(hdr->size + 1);