From 2156e762339d33715d9d5026b2c720888976b522 Mon Sep 17 00:00:00 2001 From: Przemyslaw Fiala Date: Sun, 6 Jul 2008 22:39:24 +0200 Subject: [PATCH] Fix reading ASX playlist when its size is unknown Signed-off-by: Antoine Cellerier --- 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 49e1dc4c01..0af2d4c0ed 100644 --- a/modules/demux/playlist/asx.c +++ b/modules/demux/playlist/asx.c @@ -247,7 +247,7 @@ static int Demux( demux_t *p_demux ) for( ;; ) { int i_read = stream_Read( p_demux->s, &p_sys->psz_data[i_pos], p_sys->i_data_len - i_pos ); - p_sys->psz_data[i_read] = '\0'; + p_sys->psz_data[i_pos + i_read] = '\0'; if( i_read < p_sys->i_data_len - i_pos ) break; /* Done */ -- 2.39.2