1
0
Fork 0

(svn r26502) -Fix: OSX compilation error

release/1.5
rubidium 2014-04-24 18:44:38 +00:00
parent 66743167c9
commit 781dd48949
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ void cocoaSetApplicationBundleDir()
char tmp[MAXPATHLEN];
CFURLRef url = CFBundleCopyResourcesDirectoryURL(CFBundleGetMainBundle());
if (CFURLGetFileSystemRepresentation(url, true, (unsigned char*)tmp, MAXPATHLEN)) {
AppendPathSeparator(tmp, lengthof(tmp));
AppendPathSeparator(tmp, lastof(tmp));
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = strdup(tmp);
} else {
_searchpaths[SP_APPLICATION_BUNDLE_DIR] = NULL;