From: John Stebbins Date: Tue, 3 Apr 2018 20:27:48 +0000 (-0700) Subject: libhb: don't drop "escape" char in hb_str_vsplit X-Git-Tag: 1.1.0~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cede259b8adff930db948bc22c56afce96b7573;p=handbrake libhb: don't drop "escape" char in hb_str_vsplit It's just wrong to begin with. And it may not be an escape char anyway. Could be a directory separator. Fixes https://github.com/HandBrake/HandBrake/issues/1249 --- diff --git a/libhb/common.c b/libhb/common.c index 7bc9438ec..0b23fda60 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -5462,11 +5462,6 @@ static char *strndup_quote(const char *str, char q, int len) { if (str[src] == q) src++; - else if (str[src] == '\\' && str[src+1] != 0) - { - res[dst++] = str[src+1]; - src += 2; - } else res[dst++] = str[src++]; }