diff options
Diffstat (limited to 'textproc/libxml2/patches/patch-xmlIO.c')
-rw-r--r-- | textproc/libxml2/patches/patch-xmlIO.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/textproc/libxml2/patches/patch-xmlIO.c b/textproc/libxml2/patches/patch-xmlIO.c new file mode 100644 index 00000000000..1ee175b79c1 --- /dev/null +++ b/textproc/libxml2/patches/patch-xmlIO.c @@ -0,0 +1,17 @@ +$NetBSD$ + +Since this is built with C90, and %zu isn't supported then, cast +the size_t argument to unsigned long to match the format. +https://bugzilla.gnome.org/show_bug.cgi?id=766839 + +--- xmlIO.c.orig 2016-05-23 07:25:25.000000000 +0000 ++++ xmlIO.c +@@ -1674,7 +1674,7 @@ xmlZMemBuffExtend( xmlZMemBuffPtr buff, + xmlStrPrintf(msg, 500, + "xmlZMemBuffExtend: %s %lu bytes.\n", + "Allocation failure extending output buffer to", +- new_size ); ++ (unsigned long)new_size ); + xmlIOErr(XML_IO_WRITE, (const char *) msg); + } + |