summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-01 18:21:11 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-01 18:21:11 +0000
commit11fcfab4b0d7349aa3b00e3205f3b0805396b680 (patch)
tree2c9691fc76d60ec69947e3e68c395b5d2b73ab1a /exec.c
parent7e1543c23b34fa590b636d26b94b7a8e8673569d (diff)
downloadqemu-11fcfab4b0d7349aa3b00e3205f3b0805396b680.tar.gz
qemu-11fcfab4b0d7349aa3b00e3205f3b0805396b680.tar.bz2
qemu-11fcfab4b0d7349aa3b00e3205f3b0805396b680.zip
Fix bogus fopen mode.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3038 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 5ed63de684..4ccee2246f 100644
--- a/exec.c
+++ b/exec.c
@@ -1161,7 +1161,7 @@ void cpu_set_log(int log_flags)
{
loglevel = log_flags;
if (loglevel && !logfile) {
- logfile = fopen(logfilename, log_append ? "wa" : "w");
+ logfile = fopen(logfilename, log_append ? "a" : "w");
if (!logfile) {
perror(logfilename);
_exit(1);