Make emulated _NSGetExecutablePath() conforming on OpenBSD

This commit is contained in:
Thomas Pöchtrager 2015-10-17 10:09:25 +02:00
parent 19f2dea6c6
commit 3a2d294ed7
2 changed files with 0 additions and 2 deletions

View File

@ -98,7 +98,6 @@ int _NSGetExecutablePath(char *epath, unsigned int *size)
}
free(argv);
if (ok) {
*strrchr(epath, '/') = '\0';
*size = strlen(epath);
return 0;
}

View File

@ -80,7 +80,6 @@ int _NSGetExecutablePath(char *epath, unsigned int *size)
}
free(argv);
if (ok) {
*strrchr(epath, '/') = '\0';
*size = strlen(epath);
return 0;
}