applied fix to xmlSAXParseDTD from Malcolm Tredinnick closing #111638

* parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick
  closing #111638
Daniel
diff --git a/ChangeLog b/ChangeLog
index 0af76b3..437eaa2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Apr 26 15:26:04 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+	* parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick
+	  closing #111638
+
 Sat Apr 26 14:00:58 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
 	* python/generator.py: fixed a problem in the generator where
diff --git a/parser.c b/parser.c
index 19e4313..80a6187 100644
--- a/parser.c
+++ b/parser.c
@@ -9578,7 +9578,7 @@
      */
 
     if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL))
-	input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID, SystemID);
+	input = ctxt->sax->resolveEntity(ctxt, ExternalID, SystemID);
     if (input == NULL) {
         if (sax != NULL) ctxt->sax = NULL;
 	xmlFreeParserCtxt(ctxt);