vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Tue Mar 
10 15:45:04 2015 +0100| [6247917a77301da0925e788e3c71c146e10acf26] | committer: 
Jean-Baptiste Kempf

text: url: Fix options parsing

Signed-off-by: Rémi Denis-Courmont <[email protected]>
(cherry picked from commit 65b5f88f52fdfb0e1b51dd95f292bf7540fd9e1e)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=6247917a77301da0925e788e3c71c146e10acf26
---

 src/text/url.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/text/url.c b/src/text/url.c
index cd7e488..5ba11da 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -433,7 +433,7 @@ void vlc_UrlParse (vlc_url_t *restrict url, const char 
*str, unsigned char opt)
     {
         *next = '\0'; /* temporary nul, reset to slash later */
         url->psz_path = next;
-        if (opt && (next = strchr (next, opt)) != NULL)
+        if (opt && (next = strchr (next + 1, opt)) != NULL)
         {
             *(next++) = '\0';
             url->psz_option = next;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to