From 9f59f7766e7bbd4676a97de309351f4b91812a52 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 13 Oct 2016 19:31:08 +0200 Subject: [PATCH] fix newline handling on windows --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index d857ba3e8..8ffcb8c0a 100644 --- a/src/main.c +++ b/src/main.c @@ -58,7 +58,7 @@ static void main_log (hashcat_ctx_t *hashcat_ctx, FILE *fp) if (msg_newline == true) { - fwrite (EOL, sizeof (EOL), 1, fp); + fwrite (EOL, strlen (EOL), 1, fp); } fflush (fp);