XQuartz: Use CFStringCreateWithCString

(cherry picked from commit 79782b0e14)
This commit is contained in:
Jeremy Huddleston 2007-12-21 02:06:47 -08:00
parent 2c24231fc2
commit 5dd895efa3

View File

@ -100,7 +100,7 @@ static int execute(const char *command) {
static char *command_from_prefs(const char *key, const char *default_value) {
char *command = NULL;
CFStringRef cfKey = CFStringCreateWithPascalString(NULL, key, kCFStringEncodingASCII);
CFStringRef cfKey = CFStringCreateWithCString(NULL, key, kCFStringEncodingASCII);
CFPropertyListRef PlistRef = CFPreferencesCopyAppValue(cfKey, kCFPreferencesCurrentApplication);
if ((PlistRef == NULL) || (CFGetTypeID(PlistRef) != CFStringGetTypeID())) {