mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-22 10:30:42 +02:00
Use UTF8String since lossyCString is deprecated
This commit is contained in:
parent
86fc74a86b
commit
1786f9464a
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ char *QuartzReadCocoaPasteboard(void)
|
|||
char *buffer;
|
||||
|
||||
if (! string) return NULL;
|
||||
buffer = (char *) [string lossyCString];
|
||||
buffer = (char *) [string UTF8String];
|
||||
text = (char *) malloc(strlen(buffer)+1);
|
||||
if (text)
|
||||
strcpy(text, buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue