chg: use calloc

This commit is contained in:
iceman1001 2019-01-30 20:21:41 +01:00
commit ed7122e409
3 changed files with 7 additions and 7 deletions

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;