Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Commit

Permalink
Make emulated _NSGetExecutablePath() conforming on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoechtrager committed Oct 17, 2015
1 parent 19f2dea commit 3a2d294
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cctools/ld64/src/3rd/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ int _NSGetExecutablePath(char *epath, unsigned int *size)
}
free(argv);
if (ok) {
*strrchr(epath, '/') = '\0';
*size = strlen(epath);
return 0;
}
Expand Down
1 change: 0 additions & 1 deletion cctools/libstuff/emulated.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ int _NSGetExecutablePath(char *epath, unsigned int *size)
}
free(argv);
if (ok) {
*strrchr(epath, '/') = '\0';
*size = strlen(epath);
return 0;
}
Expand Down

0 comments on commit 3a2d294

Please sign in to comment.