]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: memcpy bug...
authoriceman1001 <iceman@iuse.se>
Sun, 19 Feb 2017 22:52:09 +0000 (23:52 +0100)
committericeman1001 <iceman@iuse.se>
Sun, 19 Feb 2017 22:52:09 +0000 (23:52 +0100)
client/cmdlfem4x.c

index a1e883e0fcdf4a84ebc4d5e2149051da9f80a760..7cc62987ee27dc566ff2a29b8e3ce64106fd3a5b 100644 (file)
@@ -708,7 +708,7 @@ bool setDemodBufferEM(uint32_t *word, size_t idx){
 
        //test for even parity bits.
        uint8_t parity[45] = {0};
-       memcpy( parity, 45, DemodBuffer);
+       memcpy( parity, DemodBuffer, 45);
        if (!EMwordparitytest(parity) ){
                PrintAndLog("DEBUG: Error - EM Parity tests failed");
                return FALSE;
Impressum, Datenschutz