summaryrefslogtreecommitdiff
path: root/libexec/ftp-proxy
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-03-12 08:01:52 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-03-12 08:01:52 +0000
commit14aca5e142e22faa383804b7570b10339c11720d (patch)
treed61dd59380e78c2615114506dd681cadbb62a089 /libexec/ftp-proxy
parentc88939a28dc30c8fe49aa290971f74e08c9c22d4 (diff)
Pass full length to strlcat(). From Brian Poole.
Diffstat (limited to 'libexec/ftp-proxy')
-rw-r--r--libexec/ftp-proxy/ftp-proxy.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.c b/libexec/ftp-proxy/ftp-proxy.c
index 0867f569407..24840acde15 100644
--- a/libexec/ftp-proxy/ftp-proxy.c
+++ b/libexec/ftp-proxy/ftp-proxy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp-proxy.c,v 1.19 2002/01/10 19:35:07 mickey Exp $ */
+/* $OpenBSD: ftp-proxy.c,v 1.20 2002/03/12 08:01:51 dhartmei Exp $ */
/*
* Copyright (c) 1996-2001
@@ -53,7 +53,7 @@
*
* supports tcp wrapper lookups/access control with the -w flag using
* the real destination address - the tcp wrapper stuff is done after
- * the real destination address is retreived from pf
+ * the real destination address is retrieved from pf
*
*/
@@ -164,8 +164,9 @@ static void
usage()
{
syslog(LOG_NOTICE,
- "usage: %s [-ArVw] [-t timeout] [-D debuglevel] %s",
- __progname, "[-m min_port] [-M max_port]\n");
+ "usage: %s [-AnrVw] [-t timeout] [-D debuglevel] %s %s",
+ __progname, "[-g group] [-u user] [-m min_port]",
+ "[-M max_port]\n");
exit(EX_USAGE);
}
@@ -368,7 +369,7 @@ show_xfer_stats()
goto logit;
len -= i;
}
- strlcat(tbuf, ")", len);
+ strlcat(tbuf, ")", sizeof(tbuf));
logit:
syslog(LOG_INFO, "%s", tbuf);
}