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
1 changed files with 2 additions and 2 deletions

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, '#');