=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/server-client.c,v retrieving revision 1.339 retrieving revision 1.340 diff -u -r1.339 -r1.340 --- src/usr.bin/tmux/server-client.c 2020/05/16 16:07:55 1.339 +++ src/usr.bin/tmux/server-client.c 2020/05/16 16:16:07 1.340 @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.339 2020/05/16 16:07:55 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.340 2020/05/16 16:16:07 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -213,7 +213,6 @@ c->queue = cmdq_new(); c->tty.fd = -1; - c->tty.sx = 80; c->tty.sy = 24; @@ -272,7 +271,7 @@ void server_client_lost(struct client *c) { - struct client_file *cf; + struct client_file *cf, *cf1; c->flags |= CLIENT_DEAD; @@ -280,7 +279,7 @@ status_prompt_clear(c); status_message_clear(c); - RB_FOREACH(cf, client_files, &c->files) { + RB_FOREACH_SAFE(cf, client_files, &c->files, cf1) { cf->error = EINTR; file_fire_done(cf); } @@ -2250,7 +2249,7 @@ } -/*Get client flags. This is only flags useful to show to users. */ +/* Get client flags. This is only flags useful to show to users. */ const char * server_client_get_flags(struct client *c) {