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:
Thomas Moestl 2001-05-25 23:36:09 +00:00
parent 096c40e3f3
commit 9c9f2eefc8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77207

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;