Commit 2156e762 authored by Przemyslaw Fiala's avatar Przemyslaw Fiala Committed by Antoine Cellerier

Fix reading ASX playlist when its size is unknown

Signed-off-by: default avatarAntoine Cellerier <dionoea@videolan.org>
parent 2265c8f1
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment