diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-11 23:44:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-11 23:44:22 +0300 |
commit | 4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c (patch) | |
tree | e53f2bcda374d132de9fe51a9170ed1f2a58a53e /src/dirs.cpp | |
parent | 16cc2e4a4204ee95e8256f3d7eacaada99f53309 (diff) | |
download | manaplus-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.tar.gz manaplus-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.tar.bz2 manaplus-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.tar.xz manaplus-4b2c8bdc668289d8ca8ab3e3c3fa2ececbd7419c.zip |
Fix code style.
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r-- | src/dirs.cpp | 4 |
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"); |