From: marshmellow42 Date: Mon, 11 May 2015 22:22:50 +0000 (-0400) Subject: hf mfu info bugs X-Git-Tag: v2.1.0~12^2~29 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/2be768af57ffa83d416f7728fbf790fe9e405c54?hp=4693c188ab721316469e5f3ce39865e874d1b122 hf mfu info bugs --- diff --git a/client/cmdhfmfu.c b/client/cmdhfmfu.c index 8b800874..fec7a85e 100644 --- a/client/cmdhfmfu.c +++ b/client/cmdhfmfu.c @@ -96,9 +96,10 @@ char* getUlev1CardSizeStr( uint8_t fsize ){ static char buf[40]; char *retStr = buf; + memset(buf, 0, sizeof(buf)); - uint8_t usize = 1 << ((fsize >>1) + 1); - uint8_t lsize = 1 << (fsize >>1); + uint16_t usize = 1 << ((fsize >>1) + 1); + uint16_t lsize = 1 << (fsize >>1); // is LSB set? if ( fsize & 1 ) @@ -885,6 +886,7 @@ int CmdHF14AMfUDump(const char *Cmd){ case 's': swapEndian = true; cmdp++; + break; default: PrintAndLog("Unknown parameter '%c'", param_getchar(Cmd, cmdp)); errors = true;