1From f675ac7e0afe67a86f3f1191d3274d6ffbd4e5d7 Mon Sep 17 00:00:00 2001 2From: Jens Georg <mail@jensge.org> 3Date: Thu, 3 Aug 2023 23:44:15 +0200 4Subject: [PATCH] common: Drop deprecated xmlRecoverMemory 5 6Fixes #27 7 8Upstream: https://gitlab.gnome.org/GNOME/gupnp-tools/-/commit/f675ac7e0afe67a86f3f1191d3274d6ffbd4e5d7 9Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 10--- 11 src/common/pretty-print.c | 6 +++++- 12 1 file changed, 5 insertions(+), 1 deletion(-) 13 14diff --git a/src/common/pretty-print.c b/src/common/pretty-print.c 15index c692664..c8ebc9a 100644 16--- a/src/common/pretty-print.c 17+++ b/src/common/pretty-print.c 18@@ -34,7 +34,11 @@ pretty_print_xml (const char *xml) 19 char *text; 20 int length; 21 22- doc = xmlRecoverMemory (xml, strlen (xml)); 23+ doc = xmlReadMemory (xml, 24+ strlen (xml), 25+ NULL, 26+ NULL, 27+ XML_PARSE_NONET | XML_PARSE_RECOVER); 28 29 if (!doc) 30 return NULL; 31-- 32GitLab 33 34