[vlc-commits] AVI: small fix when parsing metadata

Jean-Baptiste Kempf git at videolan.org
Mon May 16 00:41:03 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 16 00:33:17 2011 +0200| [1286801ed77f001d6e74e911060b2bd11c5e01d3] | committer: Jean-Baptiste Kempf

AVI: small fix when parsing metadata

Closes #4765

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

 modules/demux/avi/libavi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/avi/libavi.c b/modules/demux/avi/libavi.c
index 32cae32..0bc2540 100644
--- a/modules/demux/avi/libavi.c
+++ b/modules/demux/avi/libavi.c
@@ -630,7 +630,7 @@ static int AVI_ChunkRead_strz( stream_t *s, avi_chunk_t *p_chk )
 
     if( p_strz->i_chunk_size )
     {
-        memcpy( p_strz->p_str, p_read, i_read );
+        memcpy( p_strz->p_str, p_read, p_strz->i_chunk_size );
     }
     p_strz->p_str[i_read] = 0;
 



More information about the vlc-commits mailing list