Don't open the log file with both 'truncate' and 'append' flags

This commit is contained in:
Chris Robinson
2013-06-07 03:38:09 -07:00
parent 024374e0ce
commit 68898dad1e
+1 -1
View File
@@ -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);
}