mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
staticnested_2x1nt_rf08s: fix malloc bug
This commit is contained in:
parent
c47578c048
commit
045a4c7fc6
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ int main(int argc, char *const argv[]) {
|
|||
}
|
||||
|
||||
keys2 = (uint64_t*)malloc(keycount2 * sizeof(uint64_t));
|
||||
filter_keys2 = (uint8_t*)calloc(keycount1, sizeof(uint8_t));
|
||||
filter_keys2 = (uint8_t*)calloc(keycount2, sizeof(uint8_t));
|
||||
if ((keys2 == NULL)||(filter_keys2 == NULL)) {
|
||||
perror("Failed to allocate memory");
|
||||
fclose(fptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue