[vlc-commits] asx: Fix mismatching sizeof in allocation
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jul 21 12:18:27 CEST 2017
vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul 21 11:42:27 2017 +0200| [2d08632b2d77a536cb1731bd9c370d9a58452520] | committer: Hugo Beauzée-Luyssen
asx: Fix mismatching sizeof in allocation
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=2d08632b2d77a536cb1731bd9c370d9a58452520
---
modules/demux/playlist/asx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 50dedfa339..30bea38136 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -255,7 +255,7 @@ static int Demux( demux_t *p_demux )
i_pos += i_read;
p_sys->i_data_len <<= 1 ;
p_sys->psz_data = xrealloc( p_sys->psz_data,
- p_sys->i_data_len * sizeof( char * ) + 1 );
+ p_sys->i_data_len * sizeof( *p_sys->psz_data ) + 1 );
}
if( p_sys->i_data_len <= 0 ) return -1;
}
More information about the vlc-commits
mailing list