From bd588341a82c0ac8a8356f23a964dff6e7e19cef Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Fri, 3 Jan 2020 14:19:42 +0000 Subject: [PATCH] proc: use appropriate buffer size. As per documentation. --- src/bin/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/process.c b/src/bin/process.c index 62ca69d..e24ae53 100644 --- a/src/bin/process.c +++ b/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);