From 781dd4894938ad02f83b5697723c4bb3f113b43d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 24 Apr 2014 18:44:38 +0000 Subject: (svn r26502) -Fix: OSX compilation error --- src/video/cocoa/cocoa_v.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index 4a95d1901..cbd7acd07 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -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; -- cgit v1.2.3-54-g00ecf