From 68898dad1ea80320f9e31624c22d7d372b2ce38f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 7 Jun 2013 03:38:09 -0700 Subject: [PATCH] Don't open the log file with both 'truncate' and 'append' flags --- Alc/ALc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }