diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/commands.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc index 6c04fbc0..0fcffabc 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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()); |
