Files
haikuports/dev-libs/expat/patches/expat-2.1.1.patchset
fbrosson 18b6b70ea2 expat: drop 2.0.1, fix 2.1.0, add 2.1.1.
* Drop version 2.0.1.
* $manDir was both in primary and secondary arch packages, causing
  problems when uninstalling only one of them. Fixed by discarding
  $documentationDir for secondary arch.
* Reorder sections for 2.1.0.
* configure.in already has "AC_CONFIG_MACRO_DIR([m4])" so there is
  no need to append it in PATCH().
* Drop PATCH() and, instead, use a real patch to create Makefile.am
  otherwise /bin/haikuporter complains about untracked files.
* Add $secondaryArchSuffix to cmd:libtoolize in BUILD_PREREQUIRES.
* Add recipe for 2.1.1 with patch for gcc2.
2016-03-22 04:58:55 +00:00

32 lines
779 B
Plaintext

From f255408fca0143fd70a68934ea02e2290b6c0908 Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Sat, 19 Mar 2016 10:11:53 +0000
Subject: gcc2
diff --git a/lib/xmlparse.c b/lib/xmlparse.c
index e308c79..6a61508 100644
--- a/lib/xmlparse.c
+++ b/lib/xmlparse.c
@@ -1693,13 +1693,16 @@ XML_GetBuffer(XML_Parser parser, int len)
}
if (len > bufferLim - bufferEnd) {
+#ifdef XML_CONTEXT_BYTES
+ int keep;
+#endif
int neededSize = len + (int)(bufferEnd - bufferPtr);
if (neededSize < 0) {
errorCode = XML_ERROR_NO_MEMORY;
return NULL;
}
#ifdef XML_CONTEXT_BYTES
- int keep = (int)(bufferPtr - buffer);
+ keep = (int)(bufferPtr - buffer);
if (keep > XML_CONTEXT_BYTES)
keep = XML_CONTEXT_BYTES;
--
2.7.0