Commit 183201b5 authored by ivo's avatar ivo

Correct memory allocation in vorbiscomment. Closes #472

svn path=/trunk/vorbis-tools/; revision=14980
parent 9b815934
......@@ -8,6 +8,8 @@ vorbis-tools 1.2.1 -- Unreleased
* oggenc: fixed a core dump while resampling from FLAC (#1316)
* oggenc: fixed a typo in the Skeleton handling routine
* ogginfo: support for information in Kate streams (#1360)
* vcut: 64 bit fixes (#1366)
* vorbiscomment: correct memory allocation (#472)
vorbis-tools 1.2.0 -- 2008-02-21
......
......@@ -376,7 +376,7 @@ static int _commentheader_out(vorbis_comment *vc, char *vendor, ogg_packet *op)
}
oggpack_write(&opb,1,1);
op->packet = _ogg_malloc(oggpack_bytes(&opb));
op->packet = malloc(oggpack_bytes(&opb));
memcpy(op->packet, opb.buffer, oggpack_bytes(&opb));
op->bytes=oggpack_bytes(&opb);
......
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