forgot a $(srcdir) stupid error wrong name #157976 Daniel

* Makefile.am: forgot a $(srcdir)
* encoding.c: stupid error wrong name #157976
Daniel
diff --git a/ChangeLog b/ChangeLog
index acbcb90..1f0bb58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov 11 21:43:02 CET 2004 Daniel Veillard <daniel@veillard.com>
+
+	* Makefile.am: forgot a $(srcdir)
+	* encoding.c: stupid error wrong name #157976
+
 Wed Nov 10 15:35:25 CET 2004 Daniel Veillard <daniel@veillard.com>
 
 	* NEWS configure.in doc/*: preparing release of libxml2-2.6.16
diff --git a/Makefile.am b/Makefile.am
index b186b45..c8ba4f2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -114,7 +114,7 @@
 testReader_LDADD= $(LDADDS)
 
 testapi.c: gentest.py doc/libxml2-api.xml
-	-@(if [ "$(PYTHON)" != "" ] ; then $(PYTHON) gentest.py ; fi )
+	-@(if [ "$(PYTHON)" != "" ] ; then $(PYTHON) $(srcdir)/gentest.py ; fi )
 
 testapi_SOURCES=testapi.c
 testapi_LDFLAGS = 
diff --git a/encoding.c b/encoding.c
index 6483322..da063e2 100644
--- a/encoding.c
+++ b/encoding.c
@@ -2335,7 +2335,7 @@
     unsigned int c;
 
     if ((out == NULL) || (outlen == NULL) || (inlen == NULL) ||
-        (in == NULL) || (xlattable == NULL))
+        (in == NULL) || (unicodetable == NULL))
 	return(-1);
     outend = out + *outlen;
     inend = in + *inlen;