]> Git Repo - qemu.git/commit
ui/cocoa: Fix code for starting QEMU via image file load dialog
authorPeter Maydell <[email protected]>
Sun, 8 Dec 2013 22:59:06 +0000 (22:59 +0000)
committerPeter Maydell <[email protected]>
Sun, 12 Jan 2014 22:27:10 +0000 (22:27 +0000)
commit98db429d2c6d157b7e00e3f24b6b1d9036f5e358
tree07ce50fa80ae4c6805b2eec9d779d07b0f1077c5
parent5342f990f46512487e3e5be1047a5b424f00d255
ui/cocoa: Fix code for starting QEMU via image file load dialog

Fix a number of bugs in the code for starting QEMU via the image
file load dialog:
 * use the actual argv[0] rather than "qemu": this avoids failures to
   find BIOS image files caused by not looking in the correct directory
   relative to the executable path
 * allocate a large enough argv array to NULL terminate it
 * use g_strdup(X) rather than g_strdup_printf("%s", X) or
   g_strdup_printf(X)
 * disable the printing of the simulated command line argument
   (which is presumably intended for debug only)

Signed-off-by: Peter Maydell <[email protected]>
Message-id: 1386543546[email protected]
ui/cocoa.m
This page took 0.026069 seconds and 4 git commands to generate.