diff options
author | nicm <nicm> | 2019-08-29 07:13:48 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-08-29 07:13:48 +0000 |
commit | 7ce813513818e58d3d35116c868bd6c8d866c997 (patch) | |
tree | f1f5b1a18969792c3ab4624c65cc40c91983f1c8 /cmd.c | |
parent | df0334d3b397de03a81411f1101a8e82a55b9be9 (diff) | |
download | rtmux-7ce813513818e58d3d35116c868bd6c8d866c997.tar.gz rtmux-7ce813513818e58d3d35116c868bd6c8d866c997.tar.bz2 rtmux-7ce813513818e58d3d35116c868bd6c8d866c997.zip |
It is not longer necessary to double-escape ; in %%%, problem reported
by Theo Buehler.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -661,7 +661,7 @@ char * cmd_template_replace(const char *template, const char *s, int idx) { char ch, *buf; - const char *ptr, *cp, quote[] = "\"\\$"; + const char *ptr, *cp, quote[] = "\"\\$;"; int replaced, quoted; size_t len; @@ -692,10 +692,6 @@ cmd_template_replace(const char *template, const char *s, int idx) for (cp = s; *cp != '\0'; cp++) { if (quoted && strchr(quote, *cp) != NULL) buf[len++] = '\\'; - if (quoted && *cp == ';') { - buf[len++] = '\\'; - buf[len++] = '\\'; - } buf[len++] = *cp; } buf[len] = '\0'; |