]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: 133853, If you have 3items in a array, don't start with index 4 or 3, mental...
authoriceman1001 <iceman@iuse.se>
Wed, 3 Aug 2016 07:28:54 +0000 (09:28 +0200)
committericeman1001 <iceman@iuse.se>
Wed, 3 Aug 2016 07:28:54 +0000 (09:28 +0200)
client/cmdlfjablotron.c

index cae1bc8c692611eb6feb675ddbc81ddc91a55b37..4248920dfc6f1b3734fccd96a6d9b8a12ff2e749 100644 (file)
@@ -179,7 +179,7 @@ int CmdJablotronClone(const char *Cmd) {
        UsbCommand resp;
        UsbCommand c = {CMD_T55XX_WRITE_BLOCK, {0,0,0}};
 
-       for (int i=3; i>=0; i--) {
+       for (uint8_t i = 2; i >= 0; --i) {
                c.arg[0] = blocks[i];
                c.arg[1] = i;
                clearCommandBuffer();
Impressum, Datenschutz