]> git.mdlowis.com Git - proto/labwc.git/commitdiff
s/xmlParseMemory/xmlReadMemory/
authorJohan Malm <jgm323@gmail.com>
Sun, 8 Dec 2024 17:21:11 +0000 (17:21 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 17 Dec 2024 21:51:47 +0000 (21:51 +0000)
...as xmlParseMemory() is deprecated

src/config/rcxml.c
src/menu/menu.c

index bdd84291535a9823f720935df51e937989607462..b87505e525ed50c9079c574814fceda0fbeaf4b3 100644 (file)
@@ -1412,7 +1412,8 @@ xml_tree_walk(xmlNode *node)
 void
 rcxml_parse_xml(struct buf *b)
 {
-       xmlDoc *d = xmlParseMemory(b->data, b->len);
+       int options = 0;
+       xmlDoc *d = xmlReadMemory(b->data, b->len, NULL, NULL, options);
        if (!d) {
                wlr_log(WLR_ERROR, "error parsing config file");
                return;
index 8771aae912102d9c58b14eee05c286e66e5f4aee..d1f85901ded8146be29a0cb198eef095302cff87 100644 (file)
@@ -765,7 +765,8 @@ xml_tree_walk(xmlNode *node, struct server *server)
 static bool
 parse_buf(struct server *server, struct buf *buf)
 {
-       xmlDoc *d = xmlParseMemory(buf->data, buf->len);
+       int options = 0;
+       xmlDoc *d = xmlReadMemory(buf->data, buf->len, NULL, NULL, options);
        if (!d) {
                wlr_log(WLR_ERROR, "xmlParseMemory()");
                return false;