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

Rémi Duraffort git at videolan.org
Sat Jul 20 11:52:40 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 20 09:51:42 2013 +0200| [8c95d425a64be96db34df503ab4cb786dbe46ad5] | committer: Jean-Baptiste Kempf

Fix sizeof mismatch (cid #1049613)

(cherry picked from commit 7803254ae2714c893d58843daf24096857a066f4)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=8c95d425a64be96db34df503ab4cb786dbe46ad5
---

 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