File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
CoreFoundation/PlugIn.subproj Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ CF_PRIVATE _CFBundleVersion _CFBundleGetBundleVersionForURL(CFURLRef url) {
359
359
if (CFStringGetFileSystemRepresentation (linkPath , linkPathCString , PATH_MAX ) &&
360
360
CFStringGetFileSystemRepresentation (bundlePath , bundlePathCString , PATH_MAX )) {
361
361
// Leave room for a null terminator
362
- ssize_t len = readlink (linkPathCString , linkContentsCString , PATH_MAX - 1 );
362
+ ssize_t len = readlink (linkPathCString , linkContentsCString , CFMaxPathLength );
363
363
// Make sure this is not an absolute link but a relative one
364
364
if (len < 2 || (len > 1 && linkContentsCString [0 ] == '/' )) {
365
365
os_log_error (_CFBundleResourceLogger (), "`WrappedBundle` link too short or pointed outside bundle at %{public}@" , url );
You can’t perform that action at this time.
0 commit comments