mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
use array instead
This commit is contained in:
parent
4893bce4b5
commit
d6548d1c80
1 changed files with 3 additions and 1 deletions
|
@ -1965,7 +1965,9 @@ int MifareECardLoad(uint8_t sectorcnt, uint8_t keytype) {
|
|||
for (uint8_t blockNo = 0; blockNo < NumBlocksPerSector(sectorNo); blockNo++) {
|
||||
if (mifare_classic_readblock(pcs, cuid, FirstBlockOfSector(sectorNo) + blockNo, dataoutbuf)) {
|
||||
retval = PM3_EPARTIAL;
|
||||
emlSetMem("\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", FirstBlockOfSector(sectorNo) + blockNo, 1);
|
||||
|
||||
memset(dataoutbuf2, 0, sizeof(dataoutbuf2));
|
||||
emlSetMem(dataoutbuf2, FirstBlockOfSector(sectorNo) + blockNo, 1);
|
||||
|
||||
if (DBGLEVEL > DBG_ERROR) Dbprintf("Error reading sector %2d block %2d", sectorNo, blockNo);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue