we use calloc

This commit is contained in:
iceman1001 committed 2023-10-18 20:20:55 +02:00
1 parent efac735bad
commit 185da09e62
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -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;