diff options
author | wm4 <wm4@nowhere> | 2015-04-04 01:11:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-04 01:15:11 +0200 |
commit | 00151e987d2a290eee27a107faa9a7050fc656c0 (patch) | |
tree | 393cd5c84c6ca47e55c4fdea39d2bb052a0a6b6a /options/parse_configfile.c | |
parent | 9ea0590371814f8ce1168056ee2fb228d9b30673 (diff) | |
download | mpv-00151e987d2a290eee27a107faa9a7050fc656c0.tar.bz2 mpv-00151e987d2a290eee27a107faa9a7050fc656c0.tar.xz |
options: fix run length escape case in config file parser
Oops.
Diffstat (limited to 'options/parse_configfile.c')
-rw-r--r-- | options/parse_configfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, '#'); |