Port miLazyCracker patch: fix 4k and Mini

cf 39658a2ac4/mfoc_fix_4k_and_mini.diff
This commit is contained in:
Philippe Teuwen 2017-02-17 13:45:36 +01:00
parent 48156f9bf0
commit f172064f98

View file

@ -680,7 +680,7 @@ int main(int argc, char *const argv[])
}
// Finally save all keys + data to file
uint16_t dump_size = (t.num_blocks + 1) * t.num_sectors;
uint16_t dump_size = (t.num_blocks + 1) * 16;
if (fwrite(&mtDump, 1, dump_size, pfDump) != dump_size) {
fprintf(stdout, "Error, cannot write dump\n");
fclose(pfDump);