From: Jaroslav Kysela Date: Fri, 30 Oct 2015 22:10:54 +0000 (+0100) Subject: IPTV: m3u parser - another fix for url parser X-Git-Tag: v4.2.1~1719 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e85a3c7a3f36c1bd30ddfec59876f0fe651ce8a5;p=thirdparty%2Ftvheadend.git IPTV: m3u parser - another fix for url parser --- diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index 29cf12b92..9f8bfe7e2 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -159,7 +159,7 @@ iptv_http_complete p++; if (*p == '/') p++; - if ((p = strchr(s, '/')) != NULL) + if ((p = strchr(p, '/')) != NULL) *p = '\0'; } if (!urlparse(s, &u))