summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 11edb52..2efb2e4 100644
--- a/log.c
+++ b/log.c
@@ -82,7 +82,7 @@ static FILE *logFile(uint id, const struct tm *tm) {
dataMkdir(path);
strftime(&path[len], sizeof(path) - len, "/%F.log", tm);
- logs[id].file = dataOpen(path, "a");
+ logs[id].file = dataOpen(path, "ae");
if (!logs[id].file) exit(EX_CANTCREAT);
setlinebuf(logs[id].file);