Files
sousa-gecko/parser/expat/04_getcurrentbyteindex.patch

18 lines
497 B
Diff

diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c
--- a/expat/lib/xmlparse.c
+++ b/expat/lib/xmlparse.c
@@ -2776,7 +2776,13 @@ XML_GetCurrentByteIndex(XML_Parser parser) {
return (XML_Index)(parser->m_parseEndByteIndex
- (parser->m_parseEndPtr - parser->m_eventPtr));
}
+/* BEGIN MOZILLA CHANGE (fix XML_GetCurrentByteIndex) */
+#if 0
return -1;
+#else
+ return (XML_Index)parser->m_parseEndByteIndex;
+#endif
+/* END MOZILLA CHANGE */
}
int XMLCALL