Commit f0f92708 authored by Antoine Cellerier's avatar Antoine Cellerier

Backport rss bugfix for missing 0 char at the end of the string [20038].

parent 54ca924f
......@@ -229,7 +229,8 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys->i_length = var_CreateGetInteger( p_filter, "rss-length" );
p_sys->i_ttl = __MAX( 0, var_CreateGetInteger( p_filter, "rss-ttl" ) );
p_sys->b_images = var_CreateGetBool( p_filter, "rss-images" );
p_sys->psz_marquee = (char *)malloc( p_sys->i_length );
p_sys->psz_marquee = (char *)malloc( p_sys->i_length + 1 );
p_sys->psz_marquee[p_sys->i_length] = '\0';
p_sys->p_style = malloc( sizeof( text_style_t ));
memcpy( p_sys->p_style, &default_text_style, sizeof( text_style_t ));
......
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