From: Jaroslav Kysela Date: Wed, 19 Nov 2014 07:45:12 +0000 (+0100) Subject: iptv pipe: fix the backslash handling X-Git-Tag: v4.1~736 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77436700459a15e53c1099b0c466db26cdee7ada;p=thirdparty%2Ftvheadend.git iptv pipe: fix the backslash handling --- diff --git a/src/input/mpegts/iptv/iptv_pipe.c b/src/input/mpegts/iptv/iptv_pipe.c index 2e37a6eb7..c3abc55f9 100644 --- a/src/input/mpegts/iptv/iptv_pipe.c +++ b/src/input/mpegts/iptv/iptv_pipe.c @@ -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) {