[vlc-devel] commit: Fixed an invalid msg_Err format (potential segfault). ( Laurent Aimar )

git version control git at videolan.org
Tue Jul 22 00:27:46 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Jul 21 23:18:12 2008 +0200| [83e3e91f9c7b021b5da8bf8c6c6cd8dc0a1ce763]

Fixed an invalid msg_Err format (potential segfault).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83e3e91f9c7b021b5da8bf8c6c6cd8dc0a1ce763
---

 modules/demux/subtitle_asa.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/demux/subtitle_asa.c b/modules/demux/subtitle_asa.c
index 273d8f3..89015e8 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;




More information about the vlc-devel mailing list