提交 a39437aa 编写于 作者: T ths

Fix segfault with -nographic, by Enache Adrian.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2538 c046a42c-6fe2-441c-8c8c-71466251a162
上级 ed5065e1
...@@ -7079,6 +7079,7 @@ int main(int argc, char **argv) ...@@ -7079,6 +7079,7 @@ int main(int argc, char **argv)
break; break;
case QEMU_OPTION_nographic: case QEMU_OPTION_nographic:
pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio"); pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio");
pstrcpy(parallel_devices[0], sizeof(parallel_devices[0]), "null");
pstrcpy(monitor_device, sizeof(monitor_device), "stdio"); pstrcpy(monitor_device, sizeof(monitor_device), "stdio");
nographic = 1; nographic = 1;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册