proc: use appropriate buffer size.

As per documentation.
This commit is contained in:
Alastair Poole 2020-01-03 14:19:42 +00:00
parent 539f078812
commit bd588341a8
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ proc_info_by_pid(int pid)
struct kinfo_proc *kp;
kvm_t *kern;
char errbuf[4096];
char errbuf[_POSIX2_LINE_MAX];
int count, pagesize, pid_count;
kern = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf);