From 9d4f9f56981f9f718d1ddd3c57840ea4ec78b7cc Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 14 Oct 2016 20:29:21 +0200 Subject: [PATCH] Fix dictstat and logfile --- src/dictstat.c | 2 +- src/logfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dictstat.c b/src/dictstat.c index 0fbe1961f..b240da726 100644 --- a/src/dictstat.c +++ b/src/dictstat.c @@ -48,7 +48,7 @@ int dictstat_init (hashcat_ctx_t *hashcat_ctx) snprintf (dictstat_ctx->filename, HCBUFSIZ_TINY - 1, "%s/hashcat.dictstat", folder_config->profile_dir); - FILE *fp = fopen (dictstat_ctx->filename, "wb"); + FILE *fp = fopen (dictstat_ctx->filename, "ab"); if (fp == NULL) { diff --git a/src/logfile.c b/src/logfile.c index cac3fc743..51514ab45 100644 --- a/src/logfile.c +++ b/src/logfile.c @@ -86,7 +86,7 @@ int logfile_init (hashcat_ctx_t *hashcat_ctx) logfile_ctx->enabled = true; - FILE *fp = fopen (logfile_ctx->logfile, "wb"); + FILE *fp = fopen (logfile_ctx->logfile, "ab"); if (fp == NULL) {