From: pbrook Date: Sun, 1 Jul 2007 18:21:11 +0000 (+0000) Subject: Fix bogus fopen mode. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=11fcfab4b0d7349aa3b00e3205f3b0805396b680;p=qemu.git Fix bogus fopen mode. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3038 c046a42c-6fe2-441c-8c8c-71466251a162 --- 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);