Include terminating null in u8_normalize - not necessary now, but just to be safe

This commit is contained in:
ejurgensen 2015-06-06 14:47:54 +02:00
parent 6224fdb025
commit 3dde23e060

View File

@ -437,7 +437,7 @@ daap_sort_build(struct sort_ctx *ctx, char *str)
len = strlen(str);
if (len > 0)
{
ret = u8_normalize(UNINORM_NFD, (uint8_t *)str, len, NULL, &len);
ret = u8_normalize(UNINORM_NFD, (uint8_t *)str, len + 1, NULL, &len);
if (!ret)
{
DPRINTF(E_LOG, L_DAAP, "Could not normalize string for sort header\n");