From: iceman1001 Date: Wed, 3 Aug 2016 07:28:54 +0000 (+0200) Subject: FIX: 133853, If you have 3items in a array, don't start with index 4 or 3, mental... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/8a8de2cb6d850bf2252a52e11f8e3b1428e4a382 FIX: 133853, If you have 3items in a array, don't start with index 4 or 3, mental note to self, stop coding when you are tired. --- diff --git a/client/cmdlfjablotron.c b/client/cmdlfjablotron.c index cae1bc8c..4248920d 100644 --- a/client/cmdlfjablotron.c +++ b/client/cmdlfjablotron.c @@ -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();