aboutsummaryrefslogtreecommitdiff
path: root/arguments.c
diff options
context:
space:
mode:
authornicm <nicm>2019-05-29 20:05:14 +0000
committernicm <nicm>2019-05-29 20:05:14 +0000
commit7dced376737ef685e09fd5a49161ca2bf423e91b (patch)
tree6f8d776bf67584d497386832b172132cd8703dbf /arguments.c
parentc17edd594e8088d2355102a8ca58f4b256c59397 (diff)
downloadrtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.tar.gz
rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.tar.bz2
rtmux-7dced376737ef685e09fd5a49161ca2bf423e91b.zip
Use VIS_CSTYLE for the arguments and add the missing escapes it can
generate to the parser.
Diffstat (limited to 'arguments.c')
-rw-r--r--arguments.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arguments.c b/arguments.c
index 54bc3593..8e049aab 100644
--- a/arguments.c
+++ b/arguments.c
@@ -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);