mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
UTF-8 conversion was returning string without null termination (thank you @stephan-01010011, ref pr #168)
This commit is contained in:
parent
a9437acc1a
commit
6224fdb025
@ -511,7 +511,7 @@ unicode_fixup_string(char *str, const char *fromcode)
|
||||
return str;
|
||||
}
|
||||
|
||||
ret = u8_conv_from_encoding(fromcode, iconveh_question_mark, str, len, NULL, NULL, &len);
|
||||
ret = u8_strconv_from_encoding(str, fromcode, iconveh_question_mark);
|
||||
if (!ret)
|
||||
{
|
||||
DPRINTF(E_LOG, L_MISC, "Could not convert string '%s' to UTF-8: %s\n", str, strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user