no sprintf

This commit is contained in:
iceman1001 2020-08-29 15:12:57 +02:00
parent 502fbeeaab
commit 2f86958451

View file

@ -3779,7 +3779,7 @@ static int CmdHF14AMfEKeyPrn(const char *Cmd) {
char filename[FILE_PATH_SIZE] = {0}; char filename[FILE_PATH_SIZE] = {0};
char *fptr = filename; char *fptr = filename;
fptr += sprintf(fptr, "hf-mf-"); fptr += snprintf(fptr, sizeof(filename), "hf-mf-");
FillFileNameByUID(fptr + strlen(fptr), uid, "-key", sizeof(uid)); FillFileNameByUID(fptr + strlen(fptr), uid, "-key", sizeof(uid));
createMfcKeyDump(filename, sectors_cnt, e_sector); createMfcKeyDump(filename, sectors_cnt, e_sector);