summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorPeter Maydell2013-12-08 23:59:06 +0100
committerPeter Maydell2014-01-12 23:27:10 +0100
commit98db429d2c6d157b7e00e3f24b6b1d9036f5e358 (patch)
tree07ce50fa80ae4c6805b2eec9d779d07b0f1077c5 /include/exec
parentui/cocoa: Add ".qcow2" to extension list for image load dialog (diff)
downloadqemu-98db429d2c6d157b7e00e3f24b6b1d9036f5e358.tar.gz
qemu-98db429d2c6d157b7e00e3f24b6b1d9036f5e358.tar.xz
qemu-98db429d2c6d157b7e00e3f24b6b1d9036f5e358.zip
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 <peter.maydell@linaro.org> Message-id: 1386543546-31919-6-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions