summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-attach-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-11-05 23:32:22 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-11-05 23:32:22 +0000
commite036b36a58b96a3506deb94fc973b896eb93edad (patch)
tree858ff5b963d5ee1d56ce9ceef0ba9d6a29d31551 /usr.bin/tmux/cmd-attach-session.c
parent92f346fd4ff3b98b832888207a3fc6cb8622dc46 (diff)
Same bug as last commit, but in the other copy of the loop in this file...
Diffstat (limited to 'usr.bin/tmux/cmd-attach-session.c')
-rw-r--r--usr.bin/tmux/cmd-attach-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-attach-session.c b/usr.bin/tmux/cmd-attach-session.c
index a196e8d0e08..731b6277c9b 100644
--- a/usr.bin/tmux/cmd-attach-session.c
+++ b/usr.bin/tmux/cmd-attach-session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-attach-session.c,v 1.48 2015/11/03 15:07:36 nicm Exp $ */
+/* $OpenBSD: cmd-attach-session.c,v 1.49 2015/11/05 23:32:21 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -108,7 +108,7 @@ cmd_attach_session(struct cmd_q *cmdq, const char *tflag, int dflag, int rflag,
TAILQ_FOREACH(c_loop, &clients, entry) {
if (c_loop->session != s || c == c_loop)
continue;
- proc_send_s(c->peer, MSG_DETACH, s->name);
+ proc_send_s(c_loop->peer, MSG_DETACH, s->name);
}
}