]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
hf mfu info bugs
authormarshmellow42 <marshmellowrf@gmail.com>
Mon, 11 May 2015 22:22:50 +0000 (18:22 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Mon, 11 May 2015 22:22:50 +0000 (18:22 -0400)
client/cmdhfmfu.c

index 8b800874cf08914e8c76291e4cfad0a487d97739..fec7a85ec9a21462cb50dd553ff5fb813d43df7b 100644 (file)
@@ -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;
Impressum, Datenschutz