[MPlayer-cvslog] r37339 - trunk/stream/stream_vstream.c
al
subversion at mplayerhq.hu
Wed Dec 10 23:46:42 CET 2014
Author: al
Date: Wed Dec 10 23:46:42 2014
New Revision: 37339
Log:
stream_vstream: Do not use already formatted string as format string for mp_msg
Make it possible to build with -Werror=format-security
Patch-by: Miguel A. Colón Vélez >debian.micove gmail com<
Modified:
trunk/stream/stream_vstream.c
Modified: trunk/stream/stream_vstream.c
==============================================================================
--- trunk/stream/stream_vstream.c Tue Dec 9 02:58:32 2014 (r37338)
+++ trunk/stream/stream_vstream.c Wed Dec 10 23:46:42 2014 (r37339)
@@ -57,7 +57,7 @@ void vstream_error(const char *format, .
va_start(va, format);
vsnprintf(buf, 1024, format, va);
va_end(va);
- mp_msg(MSGT_STREAM, MSGL_ERR, buf);
+ mp_msg(MSGT_STREAM, MSGL_ERR, "%s", buf);
}
static struct stream_priv_s {
More information about the MPlayer-cvslog
mailing list