Commit 11fcfab4b0d7349aa3b00e3205f3b0805396b680
1 parent
7e1543c2
Fix bogus fopen mode.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3038 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
exec.c
| ... | ... | @@ -1161,7 +1161,7 @@ void cpu_set_log(int log_flags) |
| 1161 | 1161 | { |
| 1162 | 1162 | loglevel = log_flags; |
| 1163 | 1163 | if (loglevel && !logfile) { |
| 1164 | - logfile = fopen(logfilename, log_append ? "wa" : "w"); | |
| 1164 | + logfile = fopen(logfilename, log_append ? "a" : "w"); | |
| 1165 | 1165 | if (!logfile) { |
| 1166 | 1166 | perror(logfilename); |
| 1167 | 1167 | _exit(1); | ... | ... |