Commit 6247917a authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

text: url: Fix options parsing

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 65b5f88f52fdfb0e1b51dd95f292bf7540fd9e1e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 695e4571
......@@ -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;
......
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