XQuartz: *REALLY* use CFStringCreateWithCString

I need sleep!  Why am I making these stupid mistakes... sorry for pointless commit spam.  ugg.
This commit is contained in:
Jeremy Huddleston 2007-12-21 02:09:01 -08:00
parent 79782b0e14
commit b16351fc64

View File

@ -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);