- config.h.in configure.in error.c: fix a compilation problem
on platforms without vsnprintf (xml@thewrittenword.com)
Daniel
diff --git a/error.c b/error.c
index 26af326..25066ea 100644
--- a/error.c
+++ b/error.c
@@ -163,7 +163,11 @@
while (1) {
left = size - length;
/* Try to print in the allocated space. */
- chars = vsnprintf(str + length, left, msg, args);
+#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;