/*
* UCW Library -- Printf on Fastbuf Streams
*
- * (c) 2002 Martin Mares <mj@ucw.cz>
+ * (c) 2002--2005 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
#include "lib/lib.h"
#include "lib/fastbuf.h"
+#include <stdio.h>
#include <alloca.h>
int
{
va_copy(args2, args);
r = vsnprintf(buf, len, msg, args2);
+ va_end(args2);
if (r < 0)
len = 256;
else if (r < len)
buf = alloca(len);
va_copy(args2, args);
r = vsnprintf(buf, len, msg, args2);
+ va_end(args2);
if (r < 0)
len += len;
else if (r < len)