mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
fix filename issue (dump)
This commit is contained in:
parent
7116895654
commit
5262783301
1 changed files with 4 additions and 2 deletions
|
@ -509,7 +509,7 @@ static int CmdHfLTODump(const char *Cmd) {
|
|||
|
||||
// save to file
|
||||
if (filename[0] == '\0') {
|
||||
memcpy(serial_number, sprint_hex_inrow(dump, sizeof(serial_number)), sizeof(serial_number) * 2);
|
||||
memcpy(serial_number, sprint_hex_inrow(dump, sizeof(serial_number)), sizeof(serial_number));
|
||||
char tmp_name[17] = "hf_lto_";
|
||||
strcat(tmp_name, serial_number);
|
||||
memcpy(filename, tmp_name, sizeof(tmp_name));
|
||||
|
@ -549,7 +549,9 @@ int restoreLTO(uint8_t *dump_data, bool verbose) {
|
|||
|
||||
ret_val = lto_wrbl(blk, blkData, verbose);
|
||||
|
||||
if (ret_val != PM3_SUCCESS) {
|
||||
if (ret_val == PM3_SUCCESS) {
|
||||
PrintAndLogEx(SUCCESS, "BLK %03d: " _YELLOW_("write success"), blk);
|
||||
} else {
|
||||
lto_switch_off_field();
|
||||
return ret_val;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue