From 65b5f88f52fdfb0e1b51dd95f292bf7540fd9e1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hugo=20Beauz=C3=A9e-Luyssen?= Date: Tue, 10 Mar 2015 15:45:04 +0100 Subject: [PATCH] text: url: Fix options parsing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- 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 192d76bc45..38a7cc7187 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; -- 2.39.2