1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00

options: fix run length escape case in config file parser

Oops.
This commit is contained in:
wm4 2015-04-04 01:11:38 +02:00
parent 9ea0590371
commit 00151e987d

View File

@ -110,8 +110,8 @@ static int m_config_parse(m_config_t *config, const char *location, bstr data,
MP_ERR(config, "%s broken escaping with '%%'\n", loc);
goto error;
}
value = bstr_splice(line, 0, len);
line = bstr_cut(line, len);
value = bstr_splice(rest, 0, len);
line = bstr_cut(rest, len);
} else {
// No quoting; take everything until the comment or end of line
int end = bstrchr(line, '#');