fix compilation on OSX
This commit is contained in:
parent
1833cb4dcf
commit
217b3d2bce
|
@ -581,7 +581,7 @@ void exec_commands_in_runtime_file(const CommandParameters& params,
|
|||
assert(res != -1);
|
||||
buffer[res] = '\0';
|
||||
#elif defined(__APPLE__)
|
||||
uint32_t bufsize = 2048 - filename.length();
|
||||
uint32_t bufsize = 2048 - (int)filename.length();
|
||||
_NSGetExecutablePath(buffer, &bufsize);
|
||||
char* canonical_path = realpath(buffer, NULL);
|
||||
strncpy(buffer, canonical_path, 2048 - (int)filename.length());
|
||||
|
|
Loading…
Reference in New Issue
Block a user