aboutsummaryrefslogtreecommitdiff
path: root/ui/cocoa.m
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-01-16 07:38:40 +0000
committerAndreas Färber <andreas.faerber@web.de>2013-01-31 22:27:00 +0100
commit7e02dc63b8f16372107434d44269e21cdff5d19d (patch)
tree00bacf9a604afa124ab37d653f881738683c974c /ui/cocoa.m
parent477a3877fdc3125f309133ce511236f39f58c16e (diff)
cocoa: Replace non-portable asprintf() by g_strdup_printf()
Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Diffstat (limited to 'ui/cocoa.m')
-rw-r--r--ui/cocoa.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index fbd7386295..ca42413b34 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -828,9 +828,9 @@ QemuCocoaView *cocoaView;
[sheet close];
- asprintf(&argv[0], "%s", bin);
- asprintf(&argv[1], "-hda");
- asprintf(&argv[2], "%s", img);
+ argv[0] = g_strdup_printf("%s", bin);
+ argv[1] = g_strdup_printf("-hda");
+ argv[2] = g_strdup_printf("%s", img);
printf("Using argc %d argv %s -hda %s\n", 3, bin, img);