summaryrefslogtreecommitdiffstats
path: root/cmd-save-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-save-buffer.c
parent0a94dbe051042cba644240ab0361319744ee4875 (diff)
Use the right client when working out where to save or load the buffer,
reported by kn@.
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r--cmd-save-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c
index 938bb3d6..3395612f 100644
--- a/cmd-save-buffer.c
+++ b/cmd-save-buffer.c
@@ -104,7 +104,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);