From 4f1e2f80c58293b5a4bbab6f244d593816747aab Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 26 Apr 2018 12:05:18 +0200 Subject: [PATCH] fix: 'hf mf esave' - no extra newline in the end of the file --- client/cmdhfmf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 2615291c2..bf57f0ae3 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -2500,7 +2500,9 @@ int CmdHF14AMfESave(const char *Cmd) { } for (j = 0; j < 16; j++) fprintf(f, "%02X", buf[j]); - fprintf(f,"\n"); + + if (i != numBlocks -1) + fprintf(f, "\n"); printf("."); fflush(stdout); } PrintAndLogEx(NORMAL, "\n");