diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-06 18:37:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-06 18:37:00 +0000 |
commit | 92f4a9d4ad9063cbf9af2d3ae9b942a9664f40af (patch) | |
tree | b7aa85f78d0b793db04586521a76ba5a180a739e /usr.bin/nfsstat | |
parent | fc854f52cb2e0e5e56c0fc0e8ad40fd70ebd482c (diff) |
_POSIX2_LINE_MAX errbuf for kvm_openfiles()
Diffstat (limited to 'usr.bin/nfsstat')
-rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 7d7d1a360e3..f3d5dbe910b 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfsstat.c,v 1.2 1996/03/27 19:32:49 niklas Exp $ */ +/* $OpenBSD: nfsstat.c,v 1.3 1996/08/06 18:36:59 deraadt Exp $ */ /* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */ /* @@ -48,7 +48,7 @@ static char copyright[] = static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93"; static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $"; #else -static char *rcsid = "$OpenBSD: nfsstat.c,v 1.2 1996/03/27 19:32:49 niklas Exp $"; +static char *rcsid = "$OpenBSD: nfsstat.c,v 1.3 1996/08/06 18:36:59 deraadt Exp $"; #endif #endif /* not lint */ @@ -68,6 +68,7 @@ static char *rcsid = "$OpenBSD: nfsstat.c,v 1.2 1996/03/27 19:32:49 niklas Exp $ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <limits.h> #include <paths.h> #include <err.h> @@ -89,7 +90,7 @@ main(argc, argv) u_int interval; int ch; char *memf, *nlistf; - char errbuf[80]; + char errbuf[_POSIX2_LINE_MAX]; interval = 0; memf = nlistf = NULL; |