diff options
author | 2019-05-25 10:44:09 +0000 | |
---|---|---|
committer | 2019-05-25 10:44:09 +0000 | |
commit | 6b2831afa6765eff8f37e149de49ad2a1f077ac5 (patch) | |
tree | 506de97df20be5650c833949bd20cae0921df83c /usr.bin/tmux/cmd-queue.c | |
parent | Merge the now tiny cmd-list.c into cmd.c. (diff) | |
download | wireguard-openbsd-6b2831afa6765eff8f37e149de49ad2a1f077ac5.tar.xz wireguard-openbsd-6b2831afa6765eff8f37e149de49ad2a1f077ac5.zip |
Use client name when logging command queue.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r-- | usr.bin/tmux/cmd-queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index 256829cec62..6fd9f9bacb9 100644 --- a/usr.bin/tmux/cmd-queue.c +++ b/usr.bin/tmux/cmd-queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-queue.c,v 1.69 2019/05/23 13:08:43 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.70 2019/05/25 10:44:09 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -32,11 +32,11 @@ static struct cmdq_list global_queue = TAILQ_HEAD_INITIALIZER(global_queue); static const char * cmdq_name(struct client *c) { - static char s[32]; + static char s[256]; if (c == NULL) return ("<global>"); - xsnprintf(s, sizeof s, "<%p>", c); + xsnprintf(s, sizeof s, "<%s>", c->name); return (s); } |