diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-10-29 20:11:57 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-10-29 20:11:57 +0000 |
commit | 34d05ea7cdc168f3f40ee8f7c1f203a216f2dfdf (patch) | |
tree | 32c055e3a54ed70f4ac3dcbf9ba55d5d128752b9 /tmux.h | |
parent | 5de84eca3dbaa7b9fcc378a58198ced8a2d95a3e (diff) | |
download | rtmux-34d05ea7cdc168f3f40ee8f7c1f203a216f2dfdf.tar.gz rtmux-34d05ea7cdc168f3f40ee8f7c1f203a216f2dfdf.tar.bz2 rtmux-34d05ea7cdc168f3f40ee8f7c1f203a216f2dfdf.zip |
We now send argv to the server after parsing it in the client to get the
command, so the client should not modify it. Instead, take a copy. Fixes
parsing command lists, reported by mcbride@.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1464,6 +1464,7 @@ const char *cmd_set_option_print( /* cmd.c */ int cmd_pack_argv(int, char **, char *, size_t); int cmd_unpack_argv(char *, size_t, int, char ***); +char **cmd_copy_argv(int, char **); void cmd_free_argv(int, char **); struct cmd *cmd_parse(int, char **, char **); int cmd_exec(struct cmd *, struct cmd_ctx *); |