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

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


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 21:02:02 2013 +0200| [b91d46981addac58ce71e6704d8d9a564e4c1b0e] | committer: Jean-Baptiste Kempf

FIx sizeof mismatch (cid #1049619)

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

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

 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