[vlc-commits] Fix sizeof mismatch (cid #1049613)

Rémi Duraffort git at videolan.org
Sat Jul 20 09:57:58 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 20 09:51:42 2013 +0200| [7803254ae2714c893d58843daf24096857a066f4] | committer: Rémi Duraffort

Fix sizeof mismatch (cid #1049613)

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

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

diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index 28d5809..a2ac4dc 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -401,7 +401,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 = xmalloc( sizeof(input_attachment_t**) * p_sys->i_attachments );
+        *ppp_attach = xmalloc( sizeof(input_attachment_t*) * p_sys->i_attachments );
         for( int 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