mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
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:
parent
096c40e3f3
commit
9c9f2eefc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77207
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user