mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 01:52:30 +00:00
fix(os): incorrect usage of _NSGetExecutablePath
This commit is contained in:
parent
437cd3bca1
commit
9c7aadb37e
1 changed files with 3 additions and 2 deletions
|
|
@ -26,8 +26,9 @@ void OsGetExeName(char* buffer, size_t chars) {
|
|||
|
||||
#if defined(WHOA_SYSTEM_MAC)
|
||||
// Darwin
|
||||
char path[1024] = {0};
|
||||
_NSGetExecutablePath(path, uint32_t(1024));
|
||||
char path[1024] = {0};
|
||||
uint32_t bufsize = 1024;
|
||||
_NSGetExecutablePath(path, &bufsize);
|
||||
|
||||
char actualPath[1024] = {0};
|
||||
realpath(path, actualPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue