mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
Include terminating null in u8_normalize - not necessary now, but just to be safe
This commit is contained in:
parent
6224fdb025
commit
3dde23e060
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user