]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
PCF-fix bytepos range from 0-3 to 0-15
authormarshmellow42 <marshmellowrf@gmail.com>
Thu, 15 Oct 2015 05:31:52 +0000 (01:31 -0400)
committermarshmellow42 <marshmellowrf@gmail.com>
Thu, 15 Oct 2015 05:31:52 +0000 (01:31 -0400)
client/cmdlfpcf7931.c

index 63333b97bbd9358385e05e46cc2967fd220a35f3..636db4832db0493b4094835a73d49498cef581cb 100644 (file)
@@ -137,7 +137,7 @@ int CmdLFPCF7931Write(const char *Cmd){
        if ( param_getdec(Cmd, 0, &block) ) return usage_pcf7931_write();
        if ( param_getdec(Cmd, 1, &bytepos) ) return usage_pcf7931_write();
        
-       if ( (block > 7) || (bytepos > 3) ) return usage_pcf7931_write();
+       if ( (block > 7) || (bytepos > 15) ) return usage_pcf7931_write();
 
        data  = param_get8ex(Cmd, 2, 0, 16);
        
Impressum, Datenschutz