mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 23:08:04 +02:00
XQuartz: *REALLY* use CFStringCreateWithCString
I need sleep! Why am I making these stupid mistakes... sorry for pointless commit spam. ugg.
(cherry picked from commit b16351fc64)
This commit is contained in:
parent
6562b8d4f7
commit
61cc57c510
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue