[vlc-commits] FIx sizeof mismatch (cid #1049611)

Rémi Duraffort git at videolan.org
Fri Jul 19 21:12:52 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 21:08:31 2013 +0200| [75e6888e8b0891fe056413f97314ec8dd2a3dd13] | committer: Rémi Duraffort

FIx sizeof mismatch (cid #1049611)

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

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

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 7f5dea3..46ddd95 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1492,7 +1492,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             int *pi_int = va_arg( args, int * );
 
             *pi_int     = p_sys->i_attachment;
-            *ppp_attach = calloc( p_sys->i_attachment, sizeof(*ppp_attach));
+            *ppp_attach = calloc( p_sys->i_attachment, sizeof(**ppp_attach));
             for( unsigned i = 0; i < p_sys->i_attachment && *ppp_attach; i++ )
                 (*ppp_attach)[i] = vlc_input_attachment_Duplicate( p_sys->attachment[i] );
             return VLC_SUCCESS;



More information about the vlc-commits mailing list