]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
iptv pipe: fix the backslash handling
authorJaroslav Kysela <perex@perex.cz>
Wed, 19 Nov 2014 07:45:12 +0000 (08:45 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 19 Nov 2014 07:45:12 +0000 (08:45 +0100)
src/input/mpegts/iptv/iptv_pipe.c

index 2e37a6eb758845265c793a0708752bf0ad2e6afb..c3abc55f9cc8b5ae5eb71fa2f3274b4b04fce2c4 100644 (file)
@@ -57,11 +57,8 @@ iptv_pipe_start ( iptv_mux_t *im, const char *_raw, const url_t *url )
     while (*s && *s != ' ') {
       while (*s && *s != ' ' && *s != '\\')
         s++;
-      if (*s == '\\') {
-        s++;
-        if (*s)
-          s++;
-      }
+      if (*s == '\\')
+        memmove(s, s + 1, strlen(s));
     }
     if (f != s) {
       if (*s) {