Commit 314cfa08 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent 744683d1
Mon Jan 14 18:56:25 CET 2002 Daniel Veillard <daniel@veillard.com>
* 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 ...
Mon Jan 14 18:27:19 CET 2002 Daniel Veillard <daniel@veillard.com>
* configure.in include/libxml/xmlwin32version.h: updated to 2.4.13
......
......@@ -552,7 +552,7 @@ dist-hook: libxml.spec
cleantar:
@(rm -f libxslt*.tar.gz)
rpm: cleantar distcheck
rpm: cleantar dist
rpm -ta $(distdir).tar.gz
## We create xml2Conf.sh here and not from configure because we want
......
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Define if you have the strftime function. */
#undef HAVE_STRFTIME
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
......
......@@ -103,9 +103,9 @@ xmlHashCreate(int size) {
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 @@ xmlHashGrow(xmlHashTablePtr table, int size) {
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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment