FIX: Coverity Scan fixes to emvcmd.c among others.

FIX: emclearmem bug.
This commit is contained in:
iceman1001 2017-03-05 18:43:06 +01:00
commit dfcf20d641
4 changed files with 6 additions and 6 deletions

View file

@ -578,7 +578,7 @@ void emlClearMem(void) {
memset(emCARD, 0, CARD_MEMORY_SIZE);
// fill sectors trailer data
for(uint8_t b = 3; b < 256; ((b < 127) ? (b += 4) : (b += 16)))
for(uint16_t b = 3; b < 256; ((b < 127) ? (b += 4) : (b += 16)))
emlSetMem((uint8_t *)trailer, b, 1);
// uid