summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1998-07-02 19:35:40 +0000
committerguido <guido@FreeBSD.org>1998-07-02 19:35:40 +0000
commitb7d83099eab0f5d733370c6b29672c983b199658 (patch)
tree4c694aadd09eb3be130295f96e9295bb903195d4 /usr.sbin
parent5ffa52e68ef1ba043c543d58670cd4235fc2fdc1 (diff)
downloadFreeBSD-src-b7d83099eab0f5d733370c6b29672c983b199658.zip
FreeBSD-src-b7d83099eab0f5d733370c6b29672c983b199658.tar.gz
Fix off by 1 error.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/syslogd/syslogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
index 3ad0d9a..5c4636a 100644
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#endif
static const char rcsid[] =
- "$Id: syslogd.c,v 1.35 1998/06/25 19:39:19 guido Exp $";
+ "$Id: syslogd.c,v 1.36 1998/06/27 21:45:59 steve Exp $";
#endif /* not lint */
/*
@@ -441,7 +441,7 @@ main(argc, argv)
}
/*dprintf("readfds = %#x\n", readfds);*/
- nfds = select(nfds, &readfds, (fd_set *)NULL,
+ nfds = select(nfds+1, &readfds, (fd_set *)NULL,
(fd_set *)NULL, tvp);
if (nfds == 0) {
if (tvp) {
OpenPOWER on IntegriCloud