logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

librsvg-2.40.21-xmlError-function-pointer-type.patch (1032B)


  1. From fb59a892c4a2b900b929acbf05578d831749e3ba Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Thu, 11 Apr 2024 15:54:07 +0200
  4. Subject: [PATCH] rsvg-css: Fix xmlError function pointer type
  5. ---
  6. rsvg-css.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/rsvg-css.c b/rsvg-css.c
  9. index 5b359a20..95073cf2 100644
  10. --- a/rsvg-css.c
  11. +++ b/rsvg-css.c
  12. @@ -839,7 +839,7 @@ rsvg_css_parse_overflow (const char *str, gboolean * inherit)
  13. }
  14. static void
  15. -rsvg_xml_noerror (void *data, xmlErrorPtr error)
  16. +rsvg_xml_noerror (void *data, const struct _xmlError *error)
  17. {
  18. }
  19. @@ -863,7 +863,7 @@ rsvg_css_parse_xml_attribute_string (const char *attribute_string)
  20. memset (&handler, 0, sizeof (handler));
  21. xmlSAX2InitDefaultSAXHandler (&handler, 0);
  22. - handler.serror = rsvg_xml_noerror;
  23. + handler.serror = &rsvg_xml_noerror;
  24. parser = xmlCreatePushParserCtxt (&handler, NULL, tag, strlen (tag) + 1, NULL);
  25. parser->options |= XML_PARSE_NONET;
  26. --
  27. 2.43.2