Commit 69ecf4f0 authored by Josh Coalson's avatar Josh Coalson

bug fixes

parent 01579092
......@@ -1786,10 +1786,10 @@ static void static_metadata_clear(static_metadata_t *m)
static FLAC__bool static_metadata_append(static_metadata_t *m, FLAC__StreamMetadata *d, FLAC__bool needs_delete)
{
void *x;
if(0 == (x = realloc(m->metadata, sizeof(*m->metadata)*m->num_metadata+1)))
if(0 == (x = realloc(m->metadata, sizeof(*m->metadata)*(m->num_metadata+1))))
return false;
m->metadata = (FLAC__StreamMetadata**)x;
if(0 == (x = realloc(m->needs_delete, sizeof(*m->needs_delete)*m->num_metadata+1)))
if(0 == (x = realloc(m->needs_delete, sizeof(*m->needs_delete)*(m->num_metadata+1))))
return false;
m->needs_delete = (FLAC__bool*)x;
m->metadata[m->num_metadata] = d;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment