From 36355c0e4ed7659cfe14067363f5d7c1f1d06fc0 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sun, 8 Dec 2024 17:21:11 +0000 Subject: [PATCH] s/xmlParseMemory/xmlReadMemory/ ...as xmlParseMemory() is deprecated --- src/config/rcxml.c | 3 ++- src/menu/menu.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/rcxml.c b/src/config/rcxml.c index eeb9d681..64a1f7db 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -1392,7 +1392,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; diff --git a/src/menu/menu.c b/src/menu/menu.c index 0cb00647..3bc90502 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -755,7 +755,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;