libxml2 r3725 - trunk



Author: veillard
Date: Thu Apr  3 08:31:25 2008
New Revision: 3725
URL: http://svn.gnome.org/viewvc/libxml2?rev=3725&view=rev

Log:
* error.c: avoid a scary realloc() loop should fix #520383
Daniel


Modified:
   trunk/ChangeLog
   trunk/error.c

Modified: trunk/error.c
==============================================================================
--- trunk/error.c	(original)
+++ trunk/error.c	Thu Apr  3 08:31:25 2008
@@ -31,7 +31,7 @@
 								\
     size = 150;							\
 								\
-    while (1) {							\
+    while (size < 64000) {					\
 	va_start(ap, msg);					\
   	chars = vsnprintf(str, size, msg, ap);			\
 	va_end(ap);						\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]