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

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:02:02 2013 +0200| [3a62db5f7a9eb4a41face248bff152a88075decc] | committer: Rémi Duraffort

FIx sizeof mismatch (cid #1049619)

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

 src/input/control.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/control.c b/src/input/control.c
index a238373..a4b2842 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -403,7 +403,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
                 return VLC_EGENERIC;
             }
             *pi_attachment = p_input->p->i_attachment;
-            *ppp_attachment = malloc( sizeof(input_attachment_t**) * p_input->p->i_attachment );
+            *ppp_attachment = malloc( sizeof(input_attachment_t*) * p_input->p->i_attachment );
             for( i = 0; i < p_input->p->i_attachment; i++ )
                 (*ppp_attachment)[i] = vlc_input_attachment_Duplicate( p_input->p->attachment[i] );
 



More information about the vlc-commits mailing list