]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlfem4x.c
FIX: memcpy bug...
[proxmark3-svn] / 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