platform_unix.c
changeset 100 85e5ea217e82
parent 98 4912346d49c9
child 108 0b8bcaef83e7
--- a/platform_unix.c	Fri Jan 27 19:21:29 2006 +0000
+++ b/platform_unix.c	Fri Jan 27 19:23:02 2006 +0000
@@ -359,14 +359,18 @@
     /* 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/")))