summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/arguments.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-05-29 20:05:16 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-05-29 20:05:16 +0000
commit787d4d982bb0fbe5e15f19fd39e2ca4c0e6e5cbf (patch)
tree667a90dda56a4c74764381aa4785eca8fedd77b3 /usr.bin/tmux/arguments.c
parentb38d16d286cdad6dbb28f1811de5e6c7ce437284 (diff)
Use VIS_CSTYLE for the arguments and add the missing escapes it can
generate to the parser.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r--usr.bin/tmux/arguments.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index c583d22a37c..41562fd4dcc 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.24 2019/05/28 18:30:30 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.25 2019/05/29 20:05:14 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -218,7 +218,7 @@ args_escape(const char *s)
return (escaped);
}
- flags = VIS_OCTAL|VIS_TAB|VIS_NL;
+ flags = VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL;
if (s[strcspn(s, quoted)] != '\0')
flags |= VIS_DQ;
utf8_stravis(&escaped, s, flags);