we use calloc
This commit is contained in:
1 parent
efac735bad
commit
185da09e62
3 files changed
+5
-3
No files matched your search
@@ -2020,7 +2020,7 @@ int CmdEM4x05Sniff(const char *Cmd) {
|
||||
PrintAndLogEx(SUCCESS, "-------+-------------+----------+-----+------------------------------------------------------------");
|
||||
|
||||
smartbuf bits = { 0 };
|
||||
bits.ptr = malloc(EM4X05_BITS_BUFSIZE);
|
||||
bits.ptr = calloc(EM4X05_BITS_BUFSIZE, sizeof(uint8_t));
|
||||
bits.size = EM4X05_BITS_BUFSIZE;
|
||||
bits.idx = 0;
|
||||
size_t idx = 0;
|
||||
|
||||
Reference in new issue
Block a user