fixed bug #121210 (callback to sax->error, sax->warning with wrong

* SAX2.c, xmlIO.c: fixed bug #121210 (callback to sax->error,
  sax->warning with wrong params).
diff --git a/xmlIO.c b/xmlIO.c
index 83907f9..d100948 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -2609,10 +2609,10 @@
 	    ID = "NULL";
 	if ((ctxt->validate) && (ctxt->sax != NULL) && 
             (ctxt->sax->error != NULL))
-	    ctxt->sax->error(ctxt,
+	    ctxt->sax->error(ctxt->userData,
 		    "failed to load external entity \"%s\"\n", ID);
 	else if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
-	    ctxt->sax->warning(ctxt,
+	    ctxt->sax->warning(ctxt->userData,
 		    "failed to load external entity \"%s\"\n", ID);
         return(NULL);
     }
@@ -2620,10 +2620,10 @@
     if (ret == NULL) {
 	if ((ctxt->validate) && (ctxt->sax != NULL) && 
             (ctxt->sax->error != NULL))
-	    ctxt->sax->error(ctxt,
+	    ctxt->sax->error(ctxt->userData,
 		    "failed to load external entity \"%s\"\n", resource);
 	else if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
-	    ctxt->sax->warning(ctxt,
+	    ctxt->sax->warning(ctxt->userData,
 		    "failed to load external entity \"%s\"\n", resource);
     }
     if ((resource != NULL) && (resource != (xmlChar *) URL))