Skip to content

Commit

Permalink
XQuartz: *REALLY* use CFStringCreateWithCString
Browse files Browse the repository at this point in the history
I need sleep!  Why am I making these stupid mistakes... sorry for pointless commit spam.  ugg.
  • Loading branch information
Jeremy Huddleston committed Dec 21, 2007
1 parent 79782b0 commit b16351f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xquartz/bundle/bundle-main.c
Expand Up @@ -104,7 +104,7 @@ static char *command_from_prefs(const char *key, const char *default_value) {
CFPropertyListRef PlistRef = CFPreferencesCopyAppValue(cfKey, kCFPreferencesCurrentApplication);

if ((PlistRef == NULL) || (CFGetTypeID(PlistRef) != CFStringGetTypeID())) {
CFStringRef cfDefaultValue = CFStringCreateWithPascalString(NULL, default_value, kCFStringEncodingASCII);
CFStringRef cfDefaultValue = CFStringCreateWithCString(NULL, default_value, kCFStringEncodingASCII);

CFPreferencesSetAppValue(cfKey, cfDefaultValue, kCFPreferencesCurrentApplication);
CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication);
Expand Down

0 comments on commit b16351f

Please sign in to comment.