patch from Anthony Jones for hash.c allocation size trying to work around
* hash.c: patch from Anthony Jones for hash.c allocation size
* Makefile.am: trying to work around Yet Another Libtool Madness
and build the 2.4.13 release finally ...
daniel
diff --git a/hash.c b/hash.c
index e40bebb..33fdec8 100644
--- a/hash.c
+++ b/hash.c
@@ -103,9 +103,9 @@
if (table) {
table->size = size;
table->nbElems = 0;
- table->table = xmlMalloc(size * sizeof(xmlHashEntry));
+ table->table = xmlMalloc(size * sizeof(xmlHashEntryPtr));
if (table->table) {
- memset(table->table, 0, size * sizeof(xmlHashEntry));
+ memset(table->table, 0, size * sizeof(xmlHashEntryPtr));
return(table);
}
xmlFree(table);
@@ -144,12 +144,12 @@
if (oldtable == NULL)
return(-1);
- table->table = xmlMalloc(size * sizeof(xmlHashEntry));
+ table->table = xmlMalloc(size * sizeof(xmlHashEntryPtr));
if (table->table == NULL) {
table->table = oldtable;
return(-1);
}
- memset(table->table, 0, size * sizeof(xmlHashEntry));
+ memset(table->table, 0, size * sizeof(xmlHashEntryPtr));
table->size = size;
for (i = 0; i < oldsize; i++) {