From 5c1fdae73d0ae2148619285f14c89e65e6a72e90 Mon Sep 17 00:00:00 2001 From: explorer Date: Mon, 3 Mar 1997 22:22:48 +0000 Subject: [PATCH] Message buffer passed to kvm_openfiles() should _POSIX2_LINE_MAX long; PR#3266 --- usr.bin/nfsstat/nfsstat.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 0ca601898672..09662d1179ba 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -1,4 +1,4 @@ -/* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */ +/* $NetBSD: nfsstat.c,v 1.8 1997/03/03 22:22:48 explorer Exp $ */ /* * Copyright (c) 1983, 1989, 1993 @@ -46,28 +46,31 @@ static char copyright[] = #if 0 static char sccsid[] = "from: @(#)nfsstat.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $"; +static char *rcsid = "$NetBSD: nfsstat.c,v 1.8 1997/03/03 22:22:48 explorer Exp $"; #endif #endif /* not lint */ #include #include #include + #include #include #include -#include -#include + #include -#include -#include -#include -#include -#include -#include -#include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include struct nlist nl[] = { #define N_NFSSTAT 0 @@ -87,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;