Fix the error buffer passed to kvm_openfiles to have a correct length

of _POSIX2_LINE_MAX.

MFC after:	3 days
This commit is contained in:
tmm 2001-05-25 23:36:09 +00:00
parent 2104ae9cf0
commit 4987a17e74

View File

@ -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;