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

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:50:48 2013 +0200| [e7e81115637e3273fb0d1a5a3dbc389992d5ec1e] | committer: Rémi Duraffort

Fix sizeof mismatch (cid #1049614)

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

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

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 890fde6..997df5b 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -301,7 +301,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 return VLC_EGENERIC;
 
             *pi_int = p_sys->stored_attachments.size();
-            *ppp_attach = (input_attachment_t**)malloc( sizeof(input_attachment_t**) *
+            *ppp_attach = (input_attachment_t**)malloc( sizeof(input_attachment_t*) *
                                                         p_sys->stored_attachments.size() );
             if( !(*ppp_attach) )
                 return VLC_ENOMEM;



More information about the vlc-commits mailing list