diff options
author | tmm <tmm@FreeBSD.org> | 2001-05-25 23:36:09 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-05-25 23:36:09 +0000 |
commit | 5ea7c0331abe8dbecd5bacd2acbc7c62bddab3cb (patch) | |
tree | bc51c7c6b234369158ec4d15a25d84770fb9cf83 /usr.bin/nfsstat | |
parent | d7e9eefb46484bae098f4fbcb12b795151c1ea46 (diff) | |
download | FreeBSD-src-5ea7c0331abe8dbecd5bacd2acbc7c62bddab3cb.zip FreeBSD-src-5ea7c0331abe8dbecd5bacd2acbc7c62bddab3cb.tar.gz |
Fix the error buffer passed to kvm_openfiles to have a correct length
of _POSIX2_LINE_MAX.
MFC after: 3 days
Diffstat (limited to 'usr.bin/nfsstat')
-rw-r--r-- | usr.bin/nfsstat/nfsstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c index 3c08a55..a68050c 100644 --- a/usr.bin/nfsstat/nfsstat.c +++ b/usr.bin/nfsstat/nfsstat.c @@ -60,6 +60,7 @@ static const char rcsid[] = #include <ctype.h> #include <errno.h> #include <kvm.h> +#include <limits.h> #include <nlist.h> #include <unistd.h> #include <stdio.h> @@ -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; |