diff options
author | 2019-06-13 21:44:13 +0000 | |
---|---|---|
committer | 2019-06-13 21:44:13 +0000 | |
commit | a32bfec9d9fe9f62431ae7dc61b97864b2bd1dae (patch) | |
tree | 8ae194558f39811833b254582c3c1d31da70f50e /usr.bin/tmux/cmd-load-buffer.c | |
parent | Do not crash if the environment variable is present but empty. (diff) | |
download | wireguard-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-load-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-load-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c index 8e77995f5d6..13e7ff56511 100644 --- a/usr.bin/tmux/cmd-load-buffer.c +++ b/usr.bin/tmux/cmd-load-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-load-buffer.c,v 1.54 2018/08/27 11:03:34 nicm Exp $ */ +/* $OpenBSD: cmd-load-buffer.c,v 1.55 2019/06/13 21:44:13 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -93,7 +93,7 @@ cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_WAIT); } - file = server_client_get_path(c, path); + file = server_client_get_path(item->client, path); free(path); f = fopen(file, "rb"); |