Skip to content

Commit

Permalink
XQuartz: Use CFStringCreateWithCString
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Huddleston committed Dec 21, 2007
1 parent b81809c commit 79782b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xquartz/bundle/bundle-main.c
Expand Up @@ -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())) {
Expand Down

0 comments on commit 79782b0

Please sign in to comment.