From 00151e987d2a290eee27a107faa9a7050fc656c0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Apr 2015 01:11:38 +0200 Subject: options: fix run length escape case in config file parser Oops. --- options/parse_configfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'options/parse_configfile.c') diff --git a/options/parse_configfile.c b/options/parse_configfile.c index b0bf814793..b97fd382ed 100644 --- a/options/parse_configfile.c +++ b/options/parse_configfile.c @@ -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, '#'); -- cgit v1.2.3