Fix a pile of sizeof goofs.

While scan-build wasn't what I was looking for, it has proven useful
anyway: many of the sizeof errors were just noise, but a few were actual
bugs (allocating too much or too little memory).
This commit is contained in:
Bill Currie 2018-09-07 20:00:57 +09:00
parent 575a67b2a1
commit 8fd5be0ee0
15 changed files with 16 additions and 16 deletions

View file

@ -161,7 +161,7 @@ read_adtl (dstring_t *list_buf, QFile *f, int len)
chunk = &label->ck;
break;
default:
data = malloc (sizeof (data));
data = malloc (sizeof (riff_data_t));
data->ck = ck;
data->data = read_data (f, ck.len);
chunk = &data->ck;