client: fix lf hitag hts restore dump length handling

This commit is contained in:
Matteo Scarlata committed 2026-04-07 01:59:41 +02:00
1 parent 698cd8906e
commit 7b632dd1f0
1 file changed
+1 -1
+1 -1
View File
@@ -700,7 +700,7 @@ static int CmdLFHitagSRestore(const char *Cmd) {
// read dump file
uint32_t *dump = NULL;
size_t bytes_read = 0;
if (pm3_load_dump(filename, (void **)&dump, &bytes_read, jsfHitag) != PM3_SUCCESS) {
if (pm3_load_dump(filename, (void **)&dump, &bytes_read, 64 * HITAGS_PAGE_SIZE) != PM3_SUCCESS) {
return PM3_EFILE;
}