aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-06-07 03:38:09 -0700
committerChris Robinson <[email protected]>2013-06-07 03:38:09 -0700
commit68898dad1ea80320f9e31624c22d7d372b2ce38f (patch)
tree48edb66a3ac1dea3782845f653fcc26de979b7f0 /Alc
parent024374e0ce1324294dd8dd04879eb71d7e2cb531 (diff)
Don't open the log file with both 'truncate' and 'append' flags
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index d26d5430..144b7b96 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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);
}