From 7e02dc63b8f16372107434d44269e21cdff5d19d Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 16 Jan 2013 07:38:40 +0000 Subject: [PATCH] cocoa: Replace non-portable asprintf() by g_strdup_printf() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Weil Signed-off-by: Andreas Färber --- ui/cocoa.m | 6 +++--- 1 file 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); -- 2.11.0