mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue