commiting the fix is better

Original commit message from CVS:
commiting the fix is better
This commit is contained in:
Stéphane Loeuillet 2004-05-16 17:11:23 +00:00
parent c6e3d085a7
commit de070b3297

View file

@ -546,12 +546,6 @@ gst_asf_demux_process_comment (GstASFDemux * asf_demux, guint64 * obj_size)
if (gst_bytestream_peek_bytes (bs, &data, lengths[i]) != lengths[i])
goto fail;
/* check null-termination (malicious input) */
if (data[lengths[i] - 1] != '\0' || data[lengths[i] - 2] != '\0') {
gst_bytestream_flush_fast (bs, lengths[i]);
continue;
}
/* convert to UTF-8 */
utf8_comments[i] = g_convert (data, lengths[i],
"UTF-8", "UTF-16LE", &in, &out, NULL);