Commit 0f205004 authored by Antoine Cellerier's avatar Antoine Cellerier

* rss.c: Test fix for a bug i can't reproduce (most likely due to a missing 0...

* rss.c: Test fix for a bug i can't reproduce (most likely due to a missing 0 at the end of string). See http://forum.videolan.org/viewtopic.php?p=112026#112026 for details.
parent 3ed4adba
......@@ -256,7 +256,8 @@ static int CreateFilter( vlc_object_t *p_this )
p_sys->i_length = var_CreateGetInteger( p_filter, CFG_PREFIX "length" );
p_sys->i_ttl = __MAX( 0, var_CreateGetInteger( p_filter, CFG_PREFIX "ttl" ) );
p_sys->b_images = var_CreateGetBool( p_filter, CFG_PREFIX "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