vlc/vlc-2.2 | branch: master | Tobias Güntner <[email protected]> | Sun Nov 16 
22:10:36 2014 +0100| [0063e263f88d9bbbb1c612c88cc0a0d5a6c1aa4f] | committer: 
Jean-Baptiste Kempf

Fix sizeof mismatch

Signed-off-by: Jean-Baptiste Kempf <[email protected]>
(cherry picked from commit 547fb0dfa2e76f5b9de4d0e62d56d2ae83328d59)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

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

diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 59dc1f5..6f9ee31 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -294,7 +294,7 @@ static int Control( access_t *p_access, int i_query, 
va_list args )
                 return VLC_EGENERIC;
             ppp_title = va_arg( args, input_title_t*** );
             *va_arg( args, int* ) = 1;
-            *ppp_title = malloc( sizeof( input_title_t* ) );
+            *ppp_title = malloc( sizeof( *ppp_title ) );
             if( !*ppp_title )
                 return VLC_ENOMEM;
             **ppp_title = vlc_input_title_Duplicate( p_sys->p_marks );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to