From: iceman1001 Date: Sun, 19 Feb 2017 22:52:09 +0000 (+0100) Subject: FIX: memcpy bug... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/17a9ca0cdc865d16ecd12bd9fb08b5ab2b329d73 FIX: memcpy bug... --- diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index a1e883e0..7cc62987 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -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;