--- a/libidav/utils.c Tue Dec 30 21:39:38 2025 +0100 +++ b/libidav/utils.c Wed Dec 31 16:41:16 2025 +0100 @@ -743,9 +743,9 @@ cxmutstr url; if(add_separator) { - url = cx_strcat(3, base, cx_str("/"), path); + url = cx_strcat(CX_NULLSTR, 3, base, cx_str("/"), path); } else { - url = cx_strcat(2, base, path); + url = cx_strcat(CX_NULLSTR, 2, base, path); } return url; @@ -769,9 +769,9 @@ cxmutstr url; if(add_separator) { - url = cx_strcat(3, base, cx_strn(&separator, 1), path); + url = cx_strcat(CX_NULLSTR, 3, base, cx_strn(&separator, 1), path); } else { - url = cx_strcat(2, base, path); + url = cx_strcat(CX_NULLSTR, 2, base, path); } return url; @@ -792,7 +792,7 @@ const char *base_path = util_url_path(sn->base_url); base.length -= strlen(base_path); - cxmutstr url = cx_strcat(2, base, href_str); + cxmutstr url = cx_strcat(CX_NULLSTR, 2, base, href_str); return url.ptr; }