diff options
author | Chris Robinson <[email protected]> | 2013-06-07 03:38:09 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-06-07 03:38:09 -0700 |
commit | 68898dad1ea80320f9e31624c22d7d372b2ce38f (patch) | |
tree | 48edb66a3ac1dea3782845f653fcc26de979b7f0 /Alc | |
parent | 024374e0ce1324294dd8dd04879eb71d7e2cb531 (diff) |
Don't open the log file with both 'truncate' and 'append' flags
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -829,7 +829,7 @@ static void alc_initconfig(void) str = getenv("ALSOFT_LOGFILE"); if(str && str[0]) { - FILE *logfile = fopen(str, "wat"); + FILE *logfile = fopen(str, "wt"); if(logfile) LogFile = logfile; else ERR("Failed to open log file '%s'\n", str); } |