diff -r 07b815faa6ac -r f00d03835dd9 src/server/webdav/xml.c --- a/src/server/webdav/xml.c Tue Dec 30 21:44:49 2025 +0100 +++ b/src/server/webdav/xml.c Tue Jan 13 18:09:20 2026 +0100 @@ -50,7 +50,7 @@ * format: prefix '\0' href */ static CxHashKey xml_namespace_key(CxAllocator *a, WSNamespace *ns) { - cxmutstr key_data = cx_strcat_a(a, 3, + cxmutstr key_data = cx_strcat_a(a, CX_NULLSTR, 3, ns->prefix ? cx_str((char*)ns->prefix) : cx_strn("\0", 1), cx_strn("\0", 1), cx_str((char*)ns->href)); @@ -321,7 +321,7 @@ WSXmlNode *node) { CxBuffer buf; - if(cxBufferInit(&buf, NULL, 1024, pool_allocator(pool), CX_BUFFER_AUTO_EXTEND|CX_BUFFER_FREE_CONTENTS)) { + if(cxBufferInit(&buf, pool_allocator(pool), NULL, 1024, CX_BUFFER_AUTO_EXTEND|CX_BUFFER_FREE_CONTENTS)) { return NULL; } @@ -519,18 +519,18 @@ for(i=0;text[i]!='\0';i++) { char c = text[i]; if(c == '&') { - entityref = (cxstring)CX_STR("&"); + entityref = cx_str("&"); } else if(type == 0) { if(c == '<') { - entityref = (cxstring)CX_STR("<"); + entityref = cx_str("<"); } else if(c == '>') { - entityref = (cxstring)CX_STR(">"); + entityref = cx_str(">"); } } else { if(c == '\"') { - entityref = (cxstring)CX_STR("""); + entityref = cx_str("""); } else if(c == '\'') { - entityref = (cxstring)CX_STR("'"); + entityref = cx_str("'"); } }