]> granicus.if.org Git - handbrake/commitdiff
libhb: don't drop "escape" char in hb_str_vsplit
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 3 Apr 2018 20:27:48 +0000 (13:27 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 3 Apr 2018 20:27:48 +0000 (13:27 -0700)
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

libhb/common.c

index 7bc9438ecc44ec834842c4dfdd8c5a70fb42cf07..0b23fda60b5d1942d22c5df8bf1ce0e58bbc1869 100644 (file)
@@ -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++];
     }