summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 5f99ebd0e..79ed197bf 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -195,7 +195,9 @@ void Dirs::mountDataDir()
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle);
char path[PATH_MAX];
- if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (uint8_t*)path,
+ if (!CFURLGetFileSystemRepresentation(resourcesURL,
+ TRUE,
+ reinterpret_cast<uint8_t*>(path),
PATH_MAX))
{
fprintf(stderr, "Can't find Resources directory\n");