Web lists-archives.com

[MPlayer-dev-eng] [PATCH] Fix build error with -Werror=format-security in i386




Hello:

Distributions like Fedora and the Debian family enable
Werror=format-security by default and most of these issues have
already been fixed in previous svn revisions. The following 1 line
patch fixes the current issue and allows compilation (tested in
Debian/i386) with svn r37329.

Cheers,
Miguel
--- a/stream/stream_vstream.c
+++ b/stream/stream_vstream.c
@@ -57,7 +57,7 @@
     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 {
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng