diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-07-30 14:12:49 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-07-30 14:12:49 +0200 |
| commit | 217b3d2bce272255ebc80606aeb23afac221d18e (patch) | |
| tree | 7339690a4c7b5f43471ebd4d8a4e7afe74c927d9 /src | |
| parent | 1833cb4dcfb260b039279232498bd6d9fb179122 (diff) | |
fix compilation on OSX
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()); |
