/*
+ * $Id$
+ *
* modified from Sten Gunterberg's BUGTRAQ post of 22 Jul 1997
* --nathan bryant <bryant@cs.usm.maine.edu>
*
- * $Id$
*/
/*
* Written July 1997 by Sten Gunterberg (gunterberg@ergon.ch)
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
+#include "webcit.h"
#include "webserver.h"
static int needed(const char *fmt, va_list argp)
if ((size = vsprintf(p, fmt, argp)) >= max)
size = -1;
- safestrncpy(buf, p, max);
+ strncpy(buf, p, max);
buf[max - 1] = 0;
free(p);
return size;