proc: use appropriate buffer size.

As per documentation.
edi-0.5
Alastair Poole 3 years ago
parent 539f078812
commit bd588341a8
  1. 2
      src/bin/process.c

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

Loading…
Cancel
Save