mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
replaced sprint by FillFileNameByUID
This commit is contained in:
parent
98fbd89fb5
commit
a04d93e9ae
1 changed files with 4 additions and 6 deletions
|
@ -1156,6 +1156,7 @@ int CmdEM4x50Restore(const char *Cmd) {
|
||||||
uint8_t data[DUMP_FILESIZE] = {0x0};
|
uint8_t data[DUMP_FILESIZE] = {0x0};
|
||||||
size_t bytes_read = 0;
|
size_t bytes_read = 0;
|
||||||
char filename[FILE_PATH_SIZE] = {0};
|
char filename[FILE_PATH_SIZE] = {0};
|
||||||
|
char *fptr = filename;
|
||||||
em4x50_data_t etd = {.pwd_given = false};
|
em4x50_data_t etd = {.pwd_given = false};
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
|
|
||||||
|
@ -1192,12 +1193,9 @@ int CmdEM4x50Restore(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uidLen) {
|
if (uidLen) {
|
||||||
snprintf(filename, FILE_PATH_SIZE, "./lf-4x50-%02x%02x%02x%02x-dump.bin",
|
PrintAndLogEx(INFO, "Using UID as filename");
|
||||||
uid[0],
|
fptr += sprintf(fptr, "lf-4x50-");
|
||||||
uid[1],
|
FillFileNameByUID(fptr, uid, "-dump", 4);
|
||||||
uid[2],
|
|
||||||
uid[3]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pwdLen) {
|
if (pwdLen) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue