diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-04 06:30:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-04 06:30:45 +0000 |
commit | 1173e45282591bffaa9a1e286957fa71b522ba20 (patch) | |
tree | 94f0c419326d0ab75d87e251e2d8637914416742 /usr.bin/finger | |
parent | ebd12bd0cec7e13f0e355058d7ba460ada57b7f2 (diff) |
ugly bug that lived; santana@openbsd.org.mx
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/finger.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c index dc37cdb315d..060046ed0dd 100644 --- a/usr.bin/finger/finger.c +++ b/usr.bin/finger/finger.c @@ -1,4 +1,4 @@ -/* $OpenBSD: finger.c,v 1.10 2000/01/12 11:08:05 aaron Exp $ */ +/* $OpenBSD: finger.c,v 1.11 2001/07/04 06:30:44 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -54,7 +54,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)finger.c 5.22 (Berkeley) 6/29/90";*/ -static char rcsid[] = "$OpenBSD: finger.c,v 1.10 2000/01/12 11:08:05 aaron Exp $"; +static char rcsid[] = "$OpenBSD: finger.c,v 1.11 2001/07/04 06:30:44 deraadt Exp $"; #endif /* not lint */ /* @@ -78,6 +78,7 @@ static char rcsid[] = "$OpenBSD: finger.c,v 1.10 2000/01/12 11:08:05 aaron Exp $ #include <stdlib.h> #include <string.h> #include <time.h> +#include <unistd.h> #include <err.h> #include "finger.h" #include "extern.h" @@ -132,7 +133,7 @@ main(argc, argv) argv += optind; /* If a domainname is set, increment mflag. */ - if ((getdomainname(&domain, sizeof(domain)) == 0) && domain[0]) + if ((getdomainname(domain, sizeof(domain)) == 0) && domain[0]) mflag++; /* If _PATH_MP_DB is larger than 1MB, increment mflag. */ if (stat(_PATH_MP_DB, &sb) == 0) { |