dav/scfg.c

changeset 425
ae4d89c3477c
parent 417
f340460a8b5d
child 426
9cec06cfeade
--- a/dav/scfg.c	Sun Jun 24 09:23:00 2018 +0200
+++ b/dav/scfg.c	Sun Jun 24 10:21:23 2018 +0200
@@ -123,7 +123,7 @@
                         return 1;
                     } else {
                         // get scope
-                        xmlChar *scope = xmlGetNoNsProp(node, "scope");
+                        xmlChar *scope = xmlGetNoNsProp(node, BAD_CAST "scope");
                         if(scope) {
                             if(xstreq(scope, "resource"))
                             {
@@ -201,9 +201,9 @@
                 }
                 
                 xmlAttr *attr = c->properties;
-                xmlChar *format = xmlGetNoNsProp(node, "format");
+                xmlChar *format = xmlGetNoNsProp(node, BAD_CAST "format");
                 if(format) {
-                    conf.local_format = str2tagformat(format);
+                    conf.local_format = str2tagformat((char*)format);
                     xmlFree(format);
                 }
             } else if(xstreq(c->name, "detect-changes")) {

mercurial