diff options
author | nicm <nicm> | 2019-05-23 18:33:53 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-05-23 18:33:53 +0000 |
commit | 6c260af56db8a71747c1dc51fe6bba2f51c47f4d (patch) | |
tree | 63768a85f39228f7acd237a23c11c1b1b3341c4a /cmd-show-options.c | |
parent | f006116bac736b1b4500b05584056d572922155d (diff) | |
download | rtmux-6c260af56db8a71747c1dc51fe6bba2f51c47f4d.tar.gz rtmux-6c260af56db8a71747c1dc51fe6bba2f51c47f4d.tar.bz2 rtmux-6c260af56db8a71747c1dc51fe6bba2f51c47f4d.zip |
Use the same argument escaping code for options as well.
Diffstat (limited to 'cmd-show-options.c')
-rw-r--r-- | cmd-show-options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c index 2b4651b9..6e3eca0d 100644 --- a/cmd-show-options.c +++ b/cmd-show-options.c @@ -209,8 +209,8 @@ cmd_show_options_print(struct cmd *self, struct cmdq_item *item, if (args_has(self->args, 'v')) cmdq_print(item, "%s", value); else if (options_isstring(o)) { - utf8_stravis(&escaped, value, VIS_OCTAL|VIS_TAB|VIS_NL|VIS_DQ); - cmdq_print(item, "%s \"%s\"", name, escaped); + escaped = args_escape(value); + cmdq_print(item, "%s %s", name, escaped); free(escaped); } else cmdq_print(item, "%s %s", name, value); |