[vlc-commits] text: url: Fix options parsing

Hugo Beauzée-Luyssen git at videolan.org
Wed Mar 11 16:57:58 CET 2015


vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | 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 <remi at remlab.net>
(cherry picked from commit 65b5f88f52fdfb0e1b51dd95f292bf7540fd9e1e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> 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;



More information about the vlc-commits mailing list