From 9c9f2eefc8a3e69db4d7bb81355d236ce74ea935 Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Fri, 25 May 2001 23:36:09 +0000 Subject: [PATCH] Fix the error buffer passed to kvm_openfiles to have a correct length of _POSIX2_LINE_MAX. MFC after: 3 days --- usr.bin/nfsstat/nfsstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 3c08a551a78..a68050c889f 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -60,6 +60,7 @@ static const char rcsid[] = #include #include #include +#include #include #include #include @@ -96,7 +97,7 @@ main(argc, argv) int serverOnly = -1; int ch; char *memf, *nlistf; - char errbuf[80]; + char errbuf[_POSIX2_LINE_MAX]; interval = 0; memf = nlistf = NULL;