summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@tifa.local>2007-11-21 16:53:10 -0800
committerJeremy Huddleston <jeremy@tifa.local>2007-11-21 23:27:17 -0800
commit602de4f70b6f4aab93b514f3a01917bd5d4ad640 (patch)
tree3d0780fd3e95074f9950686b39afd1593e0eb451
parent13666e287c347aab2a5e9d8ee5f6bb29b9b85171 (diff)
Darwin: Use UTF8String since lossyCString is deprecated
(cherry picked from commit 1786f9464af51ff606a612aec6fe420fa9688a28)
-rw-r--r--hw/darwin/quartz/quartzCocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/darwin/quartz/quartzCocoa.m b/hw/darwin/quartz/quartzCocoa.m
index 46a982849..48cadc60c 100644
--- a/hw/darwin/quartz/quartzCocoa.m
+++ b/hw/darwin/quartz/quartzCocoa.m
@@ -94,7 +94,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);