X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a553f2674865fa544d04ca7b8194e30c008644ae..7e758047e4acf6f8db0178564691d20af38986ab:/client/cmdlfem4x.c diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index fea4bd29..09bd1920 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -9,6 +9,7 @@ //----------------------------------------------------------------------------- #include +#include #include "proxusb.h" #include "ui.h" #include "graph.h" @@ -33,7 +34,7 @@ int CmdEM410xRead(const char *Cmd) int parity[4]; char id[11]; int retested = 0; - int BitStream[MAX_GRAPH_TRACE_LEN]; + uint8_t BitStream[MAX_GRAPH_TRACE_LEN]; high = low = 0; /* Detect high and lows and clock */ @@ -281,6 +282,7 @@ int CmdEM4x50Read(const char *Cmd) high= low= 0; clock= 64; + memset(tmpbuff, 0, MAX_GRAPH_TRACE_LEN / 64); /* first get high and low values */ for (i = 0; i < GraphTraceLen; i++)