From: Laurent Aimar Date: Mon, 21 Jul 2008 21:18:12 +0000 (+0200) Subject: Fixed an invalid msg_Err format (potential segfault). X-Git-Tag: 0.9.0-test3~334 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=83e3e91f9c7b021b5da8bf8c6c6cd8dc0a1ce763;p=vlc Fixed an invalid msg_Err format (potential segfault). --- diff --git a/modules/demux/subtitle_asa.c b/modules/demux/subtitle_asa.c index 273d8f39f9..89015e8b85 100644 --- a/modules/demux/subtitle_asa.c +++ b/modules/demux/subtitle_asa.c @@ -212,7 +212,7 @@ static int Open ( vlc_object_t *p_this ) } if( !p_detect->fmt ) { - msg_Err( p_demux, "detected %s subtitle format, no asa support" ); + msg_Err( p_demux, "detected %s subtitle format, no asa support", p_detect->name ); free( p_sys ); return VLC_EGENERIC; } @@ -276,6 +276,8 @@ static int ProcessLine( demux_t *p_demux, void *p_arg, subtitle_t *p_subtitle; char *psz_text; + VLC_UNUSED(p_arg); + if( p_sys->i_subtitles >= p_sys->i_subs_alloc ) { p_sys->i_subs_alloc += 500;