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

Hugo Beauzée-Luyssen git at videolan.org
Tue Mar 10 21:08:53 CET 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 10 15:45:04 2015 +0100| [65b5f88f52fdfb0e1b51dd95f292bf7540fd9e1e] | committer: Rémi Denis-Courmont

text: url: Fix options parsing

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65b5f88f52fdfb0e1b51dd95f292bf7540fd9e1e
---

 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 192d76b..38a7cc7 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -405,7 +405,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