Use the right client when working out where to save or load the buffer,

reported by kn@.
pull/1798/head
nicm 2019-06-13 21:44:13 +00:00 committed by Nicholas Marriott
parent 0a94dbe051
commit a924694820
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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);