From 4cb84a194fbf4a165928e1db469d54be902268fc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 27 Jan 2006 19:23:02 +0000 Subject: [PATCH] One more compiler warning cleanup. --- platform_unix.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platform_unix.c b/platform_unix.c index 0ebe5d4..a46f481 100644 --- a/platform_unix.c +++ b/platform_unix.c @@ -359,14 +359,18 @@ int locate_product_by_identifier(const char *str, char *buf, size_t bufsize) /* Ask LaunchServices to find product by identifier... */ OSStatus rc; CFURLRef url = NULL; - CFStringRef id = CFStringCreateWithBytes(NULL, str, strlen(str), + CFStringRef id = CFStringCreateWithBytes(NULL, + (const unsigned char *) str, + strlen(str), kCFStringEncodingISOLatin1, 0); rc = LSFindApplicationForInfo(kLSUnknownCreator, id, NULL, NULL, &url); CFRelease(id); if (rc == noErr) { - int b = (int) CFURLGetFileSystemRepresentation(url, TRUE, buf, bufsize); + int b = (int) CFURLGetFileSystemRepresentation(url, TRUE, + (unsigned char *) buf, + bufsize); if (b) b = 1; CFRelease(url); if ((b) && (strstr(buf, "/.Trash/")))