Fix executable path on FreeBSD.

This commit is contained in:
Brian White authored and Ryan Dahl committed 2010-12-01 20:28:17 -08:00
1 parent 09329cbb04
commit ddbaeef1b3
1 file changed
+1
+1
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;
}