From 3dde23e06067e982abcd4fa4d931be5d3b26161c Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 6 Jun 2015 14:47:54 +0200 Subject: [PATCH] Include terminating null in u8_normalize - not necessary now, but just to be safe --- src/httpd_daap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 0a10c591..87fa7c26 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -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");