<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 12:11 PM, Rafaël Carré <span dir="ltr"><<a href="mailto:funman@videolan.org" target="_blank">funman@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
src/descriptors/dr_50.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/descriptors/dr_50.c b/src/descriptors/dr_50.c<br>
index a2e491c..9933b08 100644<br>
--- a/src/descriptors/dr_50.c<br>
+++ b/src/descriptors/dr_50.c<br>
@@ -70,7 +70,7 @@ dvbpsi_component_dr_t* dvbpsi_DecodeComponentDr(dvbpsi_descriptor_t * p_descript<br>
if (p_descriptor->i_length > 6)<br>
{<br>
p_decoded->i_text_length = p_descriptor->i_length - 6;<br>
- p_decoded->i_text = calloc(p_decoded->i_text_length - 6, sizeof(uint8_t));<br>
+ p_decoded->i_text = calloc(1, p_decoded->i_text_length);<br>
if (!p_decoded->i_text)<br>
{<br>
free(p_decoded);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.1.0<br>
<br>
_______________________________________________<br>
libdvbpsi-devel mailing list<br>
<a href="mailto:libdvbpsi-devel@videolan.org">libdvbpsi-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libdvbpsi-devel" target="_blank">https://mailman.videolan.org/listinfo/libdvbpsi-devel</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Patch merged in <a href="http://git.m2x.eu/videolan/libdvbpsi.git">http://git.m2x.eu/videolan/libdvbpsi.git</a>, <br>it will show up in <a href="http://git.videolan.org/libdvbpsi.git">git.videolan.org/libdvbpsi.git</a> later on.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Kind regards,<br></div><div class="gmail_extra">Jean-Paul Saman<br></div></div>