Commit 65b5f88f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Rémi Denis-Courmont

text: url: Fix options parsing

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 1e4e068c
...@@ -405,7 +405,7 @@ void vlc_UrlParse (vlc_url_t *restrict url, const char *str, unsigned char opt) ...@@ -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 */ *next = '\0'; /* temporary nul, reset to slash later */
url->psz_path = next; url->psz_path = next;
if (opt && (next = strchr (next, opt)) != NULL) if (opt && (next = strchr (next + 1, opt)) != NULL)
{ {
*(next++) = '\0'; *(next++) = '\0';
url->psz_option = next; url->psz_option = next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment