summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2010-10-29 20:11:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2010-10-29 20:11:58 +0000
commit4226b5d1642be7873fd960efbfc7c3c110fb958d (patch)
tree6d62acd3e53614cf51a47d4a834894ed9c124eab /usr.bin/tmux/tmux.h
parentb2dd5f2d10c32898c163ed30513d809b3df73bbd (diff)
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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 35bd23b8b18..9ff5082c29b 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.244 2010/10/23 13:04:34 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.245 2010/10/29 20:11:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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 *);