summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2001-08-19 15:19:29 +0000
committerBob Beck <beck@cvs.openbsd.org>2001-08-19 15:19:29 +0000
commitdbbf2b7af7bbf76d006015ff8f35d422bd11cd6e (patch)
tree378368e75ab21b22961f7b89d6ccb618ca17a3ce
parent922ad1a1b0fe735ac7f21e558e12524f9f9641fc (diff)
oops
-rw-r--r--libexec/ftp-proxy/ftp-proxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.c b/libexec/ftp-proxy/ftp-proxy.c
index c07b904cfef..62e0c43ce2c 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.5 2001/08/19 15:02:02 beck Exp $ */
+/* $OpenBSD: ftp-proxy.c,v 1.6 2001/08/19 15:19:28 beck Exp $ */
/*
* Copyright (c) 1996-2001
@@ -1003,7 +1003,7 @@ main(int argc, char **argv)
client_iob.alive ? "alive" : "dead",
server_iob.alive ? "alive" : "dead");
- fdsp = (fd_set *)calloc(howmany(maxfd+1, NFDBITS),
+ fdsp = (fd_set *)calloc(howmany(maxfd + 1, NFDBITS),
sizeof(fd_mask));
if (fdsp == NULL) {
syslog(LOG_NOTICE, "Insufficient memory");
@@ -1041,7 +1041,7 @@ main(int argc, char **argv)
tv.tv_usec = 0;
doselect:
- switch (sval = select(FD_SETSIZE, fdsp, NULL, NULL,
+ switch (sval = select(maxfd + 1, fdsp, NULL, NULL,
(tv.tv_sec == 0) ? NULL : &tv)) {
case 0:
/*