[vlc-commits] sid: fix sizeof mismatch (cid #1062589)

Rémi Duraffort git at videolan.org
Wed Dec 11 18:59:46 CET 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Dec 11 18:57:15 2013 +0100| [d1992eb54751425f497dcf729a91f370c0eded53] | committer: Rémi Duraffort

sid: fix sizeof mismatch (cid #1062589)

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

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

diff --git a/modules/demux/sid.cpp b/modules/demux/sid.cpp
index b901b98..c31a659 100644
--- a/modules/demux/sid.cpp
+++ b/modules/demux/sid.cpp
@@ -262,7 +262,7 @@ static int Control (demux_t *demux, int query, va_list args)
                 int *pi_int    = (int*)va_arg( args, int* );
 
                 *pi_int = sys->tuneInfo.songs;
-                *ppp_title = (input_title_t**) malloc( sizeof (input_title_t**) * sys->tuneInfo.songs);
+                *ppp_title = (input_title_t**) malloc( sizeof (input_title_t*) * sys->tuneInfo.songs);
 
                 for( int i = 0; i < sys->tuneInfo.songs; i++ ) {
                     (*ppp_title)[i] = vlc_input_title_New();



More information about the vlc-commits mailing list