[vlc-devel] [PATCH 2/2] text: url: Fix options parsing
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Tue Mar 10 15:45:04 CET 2015
---
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;
--
2.1.0
More information about the vlc-devel
mailing list