[vlc-devel] commit: RTMP: Fix a format-security warning (Colin Guthrie )

git version control git at videolan.org
Mon Jan 25 09:31:50 CET 2010


vlc | branch: master | Colin Guthrie <cguthrie at mandriva.org> | Sun Jan 24 22:42:13 2010 +0000| [d5cbf5d658ade58e028bc123d844065a99011a4b] | committer: Jean-Baptiste Kempf 

RTMP: Fix a format-security warning
(cherry picked from commit 71c4bb2a2eafcb72c40d7e6f02eb0236e6e92fdb)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/access/rtmp/rtmp_amf_flv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/rtmp/rtmp_amf_flv.c b/modules/access/rtmp/rtmp_amf_flv.c
index 374baba..ff5673f 100644
--- a/modules/access/rtmp/rtmp_amf_flv.c
+++ b/modules/access/rtmp/rtmp_amf_flv.c
@@ -391,7 +391,7 @@ write_rtmp( rtmp_control_thread_t *p_thread, uint8_t *buf,
     free( buf );
     if( ret != enclen )
     {
-        msg_Err( p_thread, errmsg );
+        msg_Err( p_thread, "%s", errmsg );
         return 0;
     }
     return 1;




More information about the vlc-devel mailing list