X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/224e8c1a4d2375ae575ac6639def05475616b7d0..7c60a801d61e268ff7900ba98c7ec830a50908bc:/client/cmddata.c diff --git a/client/cmddata.c b/client/cmddata.c index 7514e428..b9069bc1 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -1892,8 +1892,7 @@ int getSamples(const char *Cmd, bool silent) PrintAndLog("Unpacking..."); BitstreamOut bout = { got, bits_per_sample * n, 0}; int j =0; - //for (j = 0; j * bits_per_sample < n * 8 && j < sizeof(GraphBuffer); j++) { - for (j = 0; j * bits_per_sample < n * 8 && j < n; j++) { + for (j = 0; j * bits_per_sample < n * 8 && j < n; j++) { uint8_t sample = getByte(bits_per_sample, &bout); GraphBuffer[j] = ((int) sample )- 128; }