mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-07 17:10:15 +01:00
XQuartz: Use CFStringCreateWithCString
(cherry picked from commit 79782b0e14)
This commit is contained in:
parent
628c9c708a
commit
6562b8d4f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue