aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/expat2
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2011-08-29 22:33:26 +0800
committerkuriyama <kuriyama@FreeBSD.org>2011-08-29 22:33:26 +0800
commit7e946ad56333af02179a50f4d87ce2041cc1d551 (patch)
treee6040bec5dc6d8d6155503fd178636123411b1ae /textproc/expat2
parent0a9c4093bfa9d455c62d1ca9889a622bf780b408 (diff)
downloadfreebsd-ports-gnome-7e946ad56333af02179a50f4d87ce2041cc1d551.tar.gz
freebsd-ports-gnome-7e946ad56333af02179a50f4d87ce2041cc1d551.tar.zst
freebsd-ports-gnome-7e946ad56333af02179a50f4d87ce2041cc1d551.zip
Apply updated (correct) fix for xmlparse.c (r1.166 in expat CVS).
PR: ports/157469 Submitted by: Todd Rinaldo <toddr@cpanel.net>
Diffstat (limited to 'textproc/expat2')
-rw-r--r--textproc/expat2/Makefile2
-rw-r--r--textproc/expat2/files/patch-xmlparse.c22
2 files changed, 13 insertions, 11 deletions
diff --git a/textproc/expat2/Makefile b/textproc/expat2/Makefile
index 9c8586b4ed06..045e00876628 100644
--- a/textproc/expat2/Makefile
+++ b/textproc/expat2/Makefile
@@ -7,7 +7,7 @@
PORTNAME= expat
PORTVERSION= 2.0.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= SF
diff --git a/textproc/expat2/files/patch-xmlparse.c b/textproc/expat2/files/patch-xmlparse.c
index e9992dd199ef..1094c0f8caf2 100644
--- a/textproc/expat2/files/patch-xmlparse.c
+++ b/textproc/expat2/files/patch-xmlparse.c
@@ -1,10 +1,12 @@
---- lib/xmlparse.c.orig 2009-12-08 10:20:08.866482591 +0900
-+++ lib/xmlparse.c 2009-12-08 10:20:23.038667874 +0900
-@@ -3725,7 +3725,6 @@
- return XML_ERROR_NO_ELEMENTS;
- default:
- tok = -tok;
-- next = end;
- break;
- }
- }
+--- lib/xmlparse.c.orig 2007-05-08 11:25:35.000000000 +0900
++++ lib/xmlparse.c 2011-08-29 23:22:09.007745673 +0900
+@@ -3703,6 +3703,9 @@
+ return XML_ERROR_UNCLOSED_TOKEN;
+ case XML_TOK_PARTIAL_CHAR:
+ return XML_ERROR_PARTIAL_CHAR;
++ case -XML_TOK_PROLOG_S:
++ tok = -tok;
++ break;
+ case XML_TOK_NONE:
+ #ifdef XML_DTD
+ /* for internal PE NOT referenced between declarations */