aboutsummaryrefslogtreecommitdiff
path: root/cmd-load-buffer.c
diff options
context:
space:
mode:
authornicm <nicm>2019-06-13 21:44:13 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2019-06-14 16:04:57 +0100
commita924694820c631d7d9b1b13ad48ce4fc0a60df8b (patch)
tree95caf3279309f9facd0e67c96d92baeee9b47039 /cmd-load-buffer.c
parent0a94dbe051042cba644240ab0361319744ee4875 (diff)
downloadrtmux-a924694820c631d7d9b1b13ad48ce4fc0a60df8b.tar.gz
rtmux-a924694820c631d7d9b1b13ad48ce4fc0a60df8b.tar.bz2
rtmux-a924694820c631d7d9b1b13ad48ce4fc0a60df8b.zip
Use the right client when working out where to save or load the buffer,
reported by kn@.
Diffstat (limited to 'cmd-load-buffer.c')
-rw-r--r--cmd-load-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c
index 47cb0ca2..3e669093 100644
--- a/cmd-load-buffer.c
+++ b/cmd-load-buffer.c
@@ -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");