Skip to content
Snippets Groups Projects
Commit 6226c6f0 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

return zero terminated string on decoding

parent 4c5751d5
No related branches found
No related tags found
No related merge requests found
......@@ -1435,7 +1435,10 @@ int arib_decode_buffer( arib_decoder_t* decoder,
{
dump( buf, decoder->buf );
}
return ucount - decoder->ucount;
int i_size = ucount - decoder->ucount;
if ( ucount )
ubuf[ i_size ] = 0;
return i_size;
}
arib_decoder_t * arib_decoder_new( arib_instance_t *p_instance )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment