mirror of
https://github.com/darlinghq/cctools-port.git
synced 2024-11-23 04:09:48 +00:00
Make emulated _NSGetExecutablePath() conforming on OpenBSD
This commit is contained in:
parent
19f2dea6c6
commit
3a2d294ed7
@ -98,7 +98,6 @@ int _NSGetExecutablePath(char *epath, unsigned int *size)
|
||||
}
|
||||
free(argv);
|
||||
if (ok) {
|
||||
*strrchr(epath, '/') = '\0';
|
||||
*size = strlen(epath);
|
||||
return 0;
|
||||
}
|
||||
|
@ -80,7 +80,6 @@ int _NSGetExecutablePath(char *epath, unsigned int *size)
|
||||
}
|
||||
free(argv);
|
||||
if (ok) {
|
||||
*strrchr(epath, '/') = '\0';
|
||||
*size = strlen(epath);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user