=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/Attic/server-msg.c,v retrieving revision 1.13 retrieving revision 1.14 diff -c -r1.13 -r1.14 *** src/usr.bin/tmux/Attic/server-msg.c 2009/08/11 21:28:11 1.13 --- src/usr.bin/tmux/Attic/server-msg.c 2009/08/13 12:15:45 1.14 *************** *** 1,4 **** ! /* $OpenBSD: server-msg.c,v 1.13 2009/08/11 21:28:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: server-msg.c,v 1.14 2009/08/13 12:15:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 238,244 **** --- 238,248 ---- server_msg_identify(struct client *c, struct msg_identify_data *data, int fd) { c->tty.sx = data->sx; + if (c->tty.sx == 0) + c->tty.sx = 80; c->tty.sy = data->sy; + if (c->tty.sy == 0) + c->tty.sy = 25; c->cwd = NULL; data->cwd[(sizeof data->cwd) - 1] = '\0';