summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <alastair.poole@int6.co.uk>2020-01-03 14:19:42 +0000
committerAlastair Poole <alastair.poole@int6.co.uk>2020-01-03 14:19:42 +0000
commitbd588341a82c0ac8a8356f23a964dff6e7e19cef (patch)
tree36798f2c7a354eb82a47a1e0ee83b9ec55ca5fb0
parent539f078812dc07034ce7b90cbc8ec57cad770a82 (diff)
proc: use appropriate buffer size.
As per documentation.
-rw-r--r--src/bin/process.c2
1 files changed, 1 insertions, 1 deletions
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)
290{ 290{
291 struct kinfo_proc *kp; 291 struct kinfo_proc *kp;
292 kvm_t *kern; 292 kvm_t *kern;
293 char errbuf[4096]; 293 char errbuf[_POSIX2_LINE_MAX];
294 int count, pagesize, pid_count; 294 int count, pagesize, pid_count;
295 295
296 kern = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf); 296 kern = kvm_openfiles(NULL, NULL, NULL, KVM_NO_FILES, errbuf);