projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477a387
)
cocoa: Replace non-portable asprintf() by g_strdup_printf()
author
Stefan Weil
<sw@weilnetz.de>
Wed, 16 Jan 2013 07:38:40 +0000
(07:38 +0000)
committer
Andreas Färber
<andreas.faerber@web.de>
Thu, 31 Jan 2013 21:27:00 +0000
(22:27 +0100)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
ui/cocoa.m
patch
|
blob
|
history
diff --git
a/ui/cocoa.m
b/ui/cocoa.m
index fbd73862950bd56065b068b0dc8e3bccc8d02a47..ca42413b348b4e2fc4782763c91999545eaf09a1 100644
(file)
--- a/
ui/cocoa.m
+++ b/
ui/cocoa.m
@@
-828,9
+828,9
@@
QemuCocoaView *cocoaView;
[sheet close];
- a
sprintf(&argv[0],
"%s", bin);
- a
sprintf(&argv[1],
"-hda");
- a
sprintf(&argv[2],
"%s", img);
+ a
rgv[0] = g_strdup_printf(
"%s", bin);
+ a
rgv[1] = g_strdup_printf(
"-hda");
+ a
rgv[2] = g_strdup_printf(
"%s", img);
printf("Using argc %d argv %s -hda %s\n", 3, bin, img);