From 45c20d62b80303b54462a2959f32967143e89164 Mon Sep 17 00:00:00 2001 From: Brian Pow Date: Mon, 5 Feb 2018 22:36:30 +0800 Subject: [PATCH] FIX: wrongly assume the max size of UID to 8 bytes. Max size should be 10 bytes. --- client/cmdhfmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index 0851cbf7d..fcf1820a0 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -360,7 +360,7 @@ int GetHFMF14AUID(uint8_t *uid, int *uidlen) { } char * GenerateFilename(const char *prefix, const char *suffix){ - uint8_t uid[8] = {0,0,0,0,0,0,0,0}; + uint8_t uid[10] = {0,0,0,0,0,0,0,0,0,0}; int uidlen=0; char * fptr = malloc (sizeof (char) * (strlen(prefix) + strlen(suffix)) + sizeof(uid)*2 + 1);