diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-01 06:53:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-01 06:53:49 +0000 |
commit | bae6cdbc9ca74db68daa1cf4f75c92c89e78920f (patch) | |
tree | f06ec720cd76d40e3ad20e7075a26fe69da4c55f /usr.sbin/rwhod | |
parent | 916a4850883c803884581d716d081a2b3a7c063b (diff) |
gethostname correctly
Diffstat (limited to 'usr.sbin/rwhod')
-rw-r--r-- | usr.sbin/rwhod/rwhod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rwhod/rwhod.c b/usr.sbin/rwhod/rwhod.c index 43f4239f692..7f2db8784f1 100644 --- a/usr.sbin/rwhod/rwhod.c +++ b/usr.sbin/rwhod/rwhod.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "@(#)rwhod.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$Id: rwhod.c,v 1.4 1996/11/01 06:53:25 imp Exp $"; +static char rcsid[] = "$Id: rwhod.c,v 1.5 1996/11/01 06:53:48 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -141,7 +141,7 @@ main(argc, argv) /* * Establish host name as returned by system. */ - if (gethostname(myname, sizeof(myname) - 1) < 0) { + if (gethostname(myname, sizeof(myname)) < 0) { syslog(LOG_ERR, "gethostname: %m"); exit(1); } |