diff options
Diffstat (limited to 'src/librc/librc-daemon.c')
-rw-r--r-- | src/librc/librc-daemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index d697a681..e345f5f7 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -211,8 +211,7 @@ pid_t *rc_find_pids (const char *exec, const char *cmd, } #ifdef _KVM_GETPROC2 - kp = kvm_getproc2 (kd, KERN_PROC_ALL, 0, sizeof(struct kinfo_proc2), - &processes); + kp = kvm_getproc2 (kd, KERN_PROC_ALL, 0, sizeof(*kp), &processes); #else kp = kvm_getprocs (kd, KERN_PROC_PROC, 0, &processes); #endif |