Fix missing NULL definition on FreeBSD
This commit is contained in:
parent
b0203bb89e
commit
d95a4660ad
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue