From d95a4660ad2476fbaba60ec22a1356de96df52c5 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Fri, 9 Aug 2019 23:31:27 +0300 Subject: [PATCH] Fix missing NULL definition on FreeBSD --- c/fs_freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/fs_freebsd.c b/c/fs_freebsd.c index 47a78dc..d18c453 100644 --- a/c/fs_freebsd.c +++ b/c/fs_freebsd.c @@ -11,7 +11,7 @@ char *get_exename(char *buf, size_t size) mib[1] = KERN_PROC; mib[2] = KERN_PROC_PATHNAME; mib[3] = -1; - sysctl(mib, 4, buf, &size, NULL, 0); + sysctl(mib, 4, buf, &size, 0, 0); return buf; }