[vlc-commits] Fix sizeof mismatch

Rémi Duraffort git at videolan.org
Fri Aug 9 10:24:36 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Aug  8 18:42:38 2013 +0200| [3321490df657b348e83b0a9439bbdf4cda90caf8] | committer: Jean-Baptiste Kempf

Fix sizeof mismatch

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3321490df657b348e83b0a9439bbdf4cda90caf8
---

 modules/demux/avformat/demux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index bf2a981..8f362dd 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -919,7 +919,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 return VLC_EGENERIC;
 
             *pi_int = p_sys->i_attachments;;
-            *ppp_attach = malloc( sizeof(input_attachment_t**) * p_sys->i_attachments );
+            *ppp_attach = malloc( sizeof(input_attachment_t*) * p_sys->i_attachments );
             for( i = 0; i < p_sys->i_attachments; i++ )
                 (*ppp_attach)[i] = vlc_input_attachment_Duplicate( p_sys->attachments[i] );
             return VLC_SUCCESS;



More information about the vlc-commits mailing list