X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/902cb3c00b49535f0de9a3b6d5ba0c54260ccac1..1282b0e6917006ece024a18517b062accdf74a7f:/client/proxmark3.c diff --git a/client/proxmark3.c b/client/proxmark3.c index cff94903..e9d64c88 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -67,9 +67,10 @@ static void *uart_receiver(void *targ) { size_t cmd_count; while (arg->run) { + rxlen = sizeof(UsbCommand); if (uart_receive(sp,rx,&rxlen)) { if ((rxlen % sizeof(UsbCommand)) != 0) { - PrintAndLog("ERROR: received %zd bytes, which does not seem to be one or more command(s)\n",rxlen); + PrintAndLog("ERROR: received %03zd bytes, which does not seem to be one or more command(s)\n",rxlen ); continue; } cmd_count = rxlen / sizeof(UsbCommand);