application/xml.c

changeset 117
b174e721663e
parent 102
64ded9f6a6c6
--- a/application/xml.c	Wed Dec 17 22:36:41 2025 +0100
+++ b/application/xml.c	Sat Dec 27 22:47:56 2025 +0100
@@ -42,7 +42,7 @@
 
 void property_xml2str(DavXmlNode *content, const char *namespace, cxmutstr *out_xmlstr, cxmutstr *out_nsdef) {
     CxBuffer buf;
-    cxBufferInit(&buf, NULL, 2048, cxDefaultAllocator, CX_BUFFER_AUTO_EXTEND);
+    cxBufferInit(&buf, cxDefaultAllocator, NULL, 2048, CX_BUFFER_AUTO_EXTEND);
     
     CxMap *nsmap = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16);
     cxMapPut(nsmap, namespace, strdup("x0"));
@@ -54,7 +54,7 @@
     
     
     CxBuffer nsbuf;
-    cxBufferInit(&nsbuf, NULL, 2048, cxDefaultAllocator, CX_BUFFER_AUTO_EXTEND);
+    cxBufferInit(&nsbuf, cxDefaultAllocator, NULL, 2048, CX_BUFFER_AUTO_EXTEND);
     CxMapIterator i = cxMapIterator(nsmap);
     int addSpace = 0;
     cx_foreach(CxMapEntry *, entry, i) {

mercurial