From 843f453491f076802fc9d2c90073ef77feb8a14a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 6 Feb 2018 12:43:58 +0100 Subject: [PATCH] fix: saveFileEML() does not follow blocksize. Thanks to @brainpow ref https://github.com/iceman1001/proxmark3/pull/164/commits/271dface40555b7c4951e67929d71f2cbcf3d263 --- client/loclass/fileutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/loclass/fileutils.c b/client/loclass/fileutils.c index 6645d7d62..a45d9edd8 100644 --- a/client/loclass/fileutils.c +++ b/client/loclass/fileutils.c @@ -120,7 +120,7 @@ int saveFileEML(const char *preferredName, const char *suffix, uint8_t* data, si for (i = 0; i < datalen; i++) { fprintf(f, "%02X", data[i] ); - if ( (i+1) % 4 == 0) + if ( (i+1) % blocksize == 0) fprintf(f, "\n"); } // left overs