coverty 226411

This commit is contained in:
iceman1001 2020-01-03 19:16:13 +01:00
parent 6f9b9335a1
commit 0684060ec0

View file

@ -169,6 +169,9 @@ void printvar(const char *name, uint8_t *arr, int len) {
}
void printarr_human_readable(const char *title, uint8_t *arr, int len) {
if (arr == NULL) return;
int cx = 0, i;
size_t outsize = 100 + strlen(title) + len * 4;
char *output = calloc(outsize, sizeof(char));