From 6224fdb025f0957a6625c1659a5e24152c22324d Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 6 Jun 2015 14:22:24 +0200 Subject: [PATCH] UTF-8 conversion was returning string without null termination (thank you @stephan-01010011, ref pr #168) --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index ab916f78..222c2b81 100644 --- a/src/misc.c +++ b/src/misc.c @@ -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));