unknown->is_last = true;
unknown->type = 127;
unknown->length = 8;
- unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(8);
- memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", 8);
+ unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(unknown->length);
+ memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", unknown->length);
}
void mutils__free_metadata_blocks(
unknown->is_last = true;
unknown->type = 127;
unknown->length = 8;
- unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(8);
- memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", 8);
+ unknown->data.unknown.data = (FLAC__byte*)malloc_or_die_(unknown->length);
+ memcpy(unknown->data.unknown.data, "\xfe\xdc\xba\x98\xf0\xe1\xd2\xc3", unknown->length);
}
void mutils__free_metadata_blocks(