aboutsummaryrefslogtreecommitdiff
path: root/server-msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'server-msg.c')
-rw-r--r--server-msg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-msg.c b/server-msg.c
index 286e8bdc..e8aea526 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -238,7 +238,11 @@ void
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';