summaryrefslogtreecommitdiff
path: root/net/wu-ftpd/patches/patch-ai
blob: 2b928b6deea3600e041cf131c2970d24e39638ba (plain)
1
2
3
4
5
6
7
8
9
10
11
$NetBSD: patch-ai,v 1.3 1998/08/23 06:08:50 garbled Exp $
--- src/ftpd.c.orig	Mon Jul 13 03:00:10 1998
+++ src/ftpd.c	Mon Jul 13 02:58:45 1998
@@ -2847,4 +2847,5 @@
       /* send a line...(note that this overrides dolreplies!) */
-      vreply(USE_REPLY_LONG | USE_REPLY_NOTFMT, n, ptr, 0);
-
+      VA_START(fmt);
+      vreply(USE_REPLY_LONG | USE_REPLY_NOTFMT, n, ptr, ap);
+      VA_END; /* *NEVER* send a 0 as an ap, some machines use a *struct* for a va_list! */
       if (p)