Spring cleanup ...: - configure.in Makefile.am config.h.in
Spring cleanup ...:
- configure.in Makefile.am config.h.in xmlversion.h.in: detect if
we need string functions
- trio.[ch] strio.[ch]: embedded the Trio-0.23 string functions
to be able to use them where needed. Applied some changes
to reduce name linking pollution and compile in only what's
needed.
- HTMLtree.c debugXML.c entities.c error.c nanoftp.c valid.c
xlink.c xmlversion.h.in xpath.c: got rid of the #ifdef
for the string manipulation functions
- xmlmemory.[ch]: removed DEBUG_MEMORY_FREED and added it automatically
to the free() function of xmlmemory.c
- entities.c HTMLtree.c parserInternals.c tree.c uri.c valid.c
xinclude.c xmlIO.c xpath.c xpointer.c: removed the MEM_CLEANUP
usage.
Daniel
diff --git a/error.c b/error.c
index b8aaf1b..8daa515 100644
--- a/error.c
+++ b/error.c
@@ -163,21 +163,17 @@
int chars, left;
char *str, *larger;
- str = (char *) xmlMalloc(100);
+ str = (char *) xmlMalloc(150);
if (str == NULL)
return(NULL);
- size = 100;
+ size = 150;
length = 0;
while (1) {
left = size - length;
/* Try to print in the allocated space. */
-#ifdef HAVE_VSNPRINTF
chars = vsnprintf(str + length, left, msg, args);
-#else
- chars = vsprintf(str + length, msg, args);
-#endif
/* If that worked, we're done. */
if ((chars > -1) && (chars < left ))
break;