Fix executable path on FreeBSD.
This commit is contained in:
parent
09329cbb04
commit
ddbaeef1b3
@ -74,6 +74,7 @@ int OS::GetExecutablePath(char* buffer, size_t* size) {
|
|||||||
if (sysctl(mib, 4, buffer, size, NULL, 0) == -1) {
|
if (sysctl(mib, 4, buffer, size, NULL, 0) == -1) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
*size-=1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user