Loading adb/get_my_path_darwin.c +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ void get_my_path(char *s, size_t maxLen) CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle); CFRelease(executableURL); CFStringGetCString(executablePathString, s, maxLen, kCFStringEncodingASCII); CFStringGetFileSystemRepresentation(executablePathString, s, maxLen); CFRelease(executablePathString); } fastboot/util_osx.c +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ void get_my_path(char s[PATH_MAX]) CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle); CFRelease(executableURL); CFStringGetCString(executablePathString, s, PATH_MAX-1, kCFStringEncodingASCII); CFStringGetFileSystemRepresentation(executablePathString, s, PATH_MAX-1); CFRelease(executablePathString); char *x; Loading Loading
adb/get_my_path_darwin.c +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ void get_my_path(char *s, size_t maxLen) CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle); CFRelease(executableURL); CFStringGetCString(executablePathString, s, maxLen, kCFStringEncodingASCII); CFStringGetFileSystemRepresentation(executablePathString, s, maxLen); CFRelease(executablePathString); }
fastboot/util_osx.c +1 −1 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ void get_my_path(char s[PATH_MAX]) CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle); CFRelease(executableURL); CFStringGetCString(executablePathString, s, PATH_MAX-1, kCFStringEncodingASCII); CFStringGetFileSystemRepresentation(executablePathString, s, PATH_MAX-1); CFRelease(executablePathString); char *x; Loading