$OpenBSD$

Index: src/lib/fcitx-utils/utils.c
--- src/lib/fcitx-utils/utils.c.orig
+++ src/lib/fcitx-utils/utils.c
@@ -522,7 +522,7 @@ char* fcitx_utils_get_process_name()
 #ifdef __NetBSD__
         struct kinfo_proc2 * kp = kvm_getproc2(vm, KERN_PROC_PID, mypid, sizeof(struct kinfo_proc2), &cnt);
 #else
-        struct kinfo_proc * kp = kvm_getprocs(vm, KERN_PROC_PID, mypid, &cnt);
+        struct kinfo_proc * kp = kvm_getprocs(vm, KERN_PROC_PID, mypid, sizeof(struct kinfo_proc), &cnt);
 #endif
         if ((cnt != 1) || (kp == 0)) {
             break;
