Fix executable path on FreeBSD.

This commit is contained in:
Brian White 2010-12-01 21:24:32 -05:00 committed by Ryan Dahl
parent 09329cbb04
commit ddbaeef1b3

View File

@ -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;
}