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>
This commit is contained in:
parent
477a3877fd
commit
7e02dc63b8
|
@ -828,9 +828,9 @@ QemuCocoaView *cocoaView;
|
||||||
|
|
||||||
[sheet close];
|
[sheet close];
|
||||||
|
|
||||||
asprintf(&argv[0], "%s", bin);
|
argv[0] = g_strdup_printf("%s", bin);
|
||||||
asprintf(&argv[1], "-hda");
|
argv[1] = g_strdup_printf("-hda");
|
||||||
asprintf(&argv[2], "%s", img);
|
argv[2] = g_strdup_printf("%s", img);
|
||||||
|
|
||||||
printf("Using argc %d argv %s -hda %s\n", 3, bin, img);
|
printf("Using argc %d argv %s -hda %s\n", 3, bin, img);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue