chg: use calloc

This commit is contained in:
iceman1001 committed 2019-01-30 20:21:41 +01:00
1 parent 18db34ffb0
commit ed7122e409
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -1012,7 +1012,7 @@ int CmdSmartBruteforceSFI(const char *Cmd) {
json_t *root = NULL;
smart_loadjson("aidlist", "json", &root);
uint8_t* buf = malloc(USB_CMD_DATA_SIZE);
uint8_t* buf = calloc(USB_CMD_DATA_SIZE, sizeof(uint8_t));
if ( !buf )
return 1;