Fix missing NULL definition on FreeBSD

This commit is contained in:
Lassi Kortela 2019-08-09 23:31:27 +03:00
parent b0203bb89e
commit d95a4660ad
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ char *get_exename(char *buf, size_t size)
mib[1] = KERN_PROC; mib[1] = KERN_PROC;
mib[2] = KERN_PROC_PATHNAME; mib[2] = KERN_PROC_PATHNAME;
mib[3] = -1; mib[3] = -1;
sysctl(mib, 4, buf, &size, NULL, 0); sysctl(mib, 4, buf, &size, 0, 0);
return buf; return buf;
} }