charset_conv: fix switched parameters

Fixes #2186.
This commit is contained in:
wm4 2015-08-02 18:21:22 +02:00
parent aa0157d9b8
commit bbbb2d9723
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ bstr mp_charset_guess_and_conv_to_utf8(struct mp_log *log, bstr buf,
const char *user_cp, int flags)
{
void *tmp = talloc_new(NULL);
const char *cp = mp_charset_guess(log, tmp, buf, user_cp, flags);
const char *cp = mp_charset_guess(tmp, log, buf, user_cp, flags);
bstr res = mp_iconv_to_utf8(log, buf, cp, flags);
talloc_free(tmp);
return res;