$OpenBSD: patch-network_mail_llscan_src_strlib_c,v 1.1 2004/01/04 22:35:01 espie Exp $
--- network/mail/llscan/src/strlib.c.orig	2004-01-04 23:20:04.000000000 +0100
+++ network/mail/llscan/src/strlib.c	2004-01-04 23:24:19.000000000 +0100
@@ -29,7 +29,7 @@
 /***************************************************************/
 
 #include <stdio.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include "SRCstdlib.h"
 #include "strlib.h"
 
@@ -161,16 +161,13 @@ string text, pat;
 
 /* VARARGS1 */
 /* string format(control, arg0) */
-string format(va_alist)
-va_dcl
+string format(string control, ...)
 {
-    string control;
     int res;
     va_list args;
 
-    va_start(args);
-    control = va_arg(args, string);
-    res = (int) sprintf(fmtbuf, control, args);
+    va_start(args, control);
+    res = (int) vsprintf(fmtbuf, control, args);
     if (res < 0) abort();
     va_end(args);
 
