mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Fix executable path on FreeBSD.
This commit is contained in:
@@ -74,6 +74,7 @@ int OS::GetExecutablePath(char* buffer, size_t* size) {
|
||||
if (sysctl(mib, 4, buffer, size, NULL, 0) == -1) {
|
||||
return -1;
|
||||
}
|
||||
*size-=1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user