summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-save-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-06-13 21:44:13 +0000
committernicm <nicm@openbsd.org>2019-06-13 21:44:13 +0000
commita32bfec9d9fe9f62431ae7dc61b97864b2bd1dae (patch)
tree8ae194558f39811833b254582c3c1d31da70f50e /usr.bin/tmux/cmd-save-buffer.c
parentDo not crash if the environment variable is present but empty. (diff)
downloadwireguard-openbsd-a32bfec9d9fe9f62431ae7dc61b97864b2bd1dae.tar.xz
wireguard-openbsd-a32bfec9d9fe9f62431ae7dc61b97864b2bd1dae.zip
Use the right client when working out where to save or load the buffer,
reported by kn@.
Diffstat (limited to 'usr.bin/tmux/cmd-save-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-save-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-save-buffer.c b/usr.bin/tmux/cmd-save-buffer.c
index 20b05650caa..6c3b6b3a42e 100644
--- a/usr.bin/tmux/cmd-save-buffer.c
+++ b/usr.bin/tmux/cmd-save-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-save-buffer.c,v 1.45 2018/07/31 13:06:44 nicm Exp $ */
+/* $OpenBSD: cmd-save-buffer.c,v 1.46 2019/06/13 21:44:13 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -105,7 +105,7 @@ cmd_save_buffer_exec(struct cmd *self, struct cmdq_item *item)
if (args_has(self->args, 'a'))
flags = "ab";
- file = server_client_get_path(c, path);
+ file = server_client_get_path(item->client, path);
free(path);
f = fopen(file, flags);