Web lists-archives.com

Re: [MPlayer-dev-eng] [PATCH] configure: GCC: Add -Werror=format-security




On 12/17/2014 01:12 PM, Alexander Strasser wrote:
   I hope users of those features will report when the build
fails.


Here is a patch for a build error in gui/win32.
Index: gui/win32/dialogs.c
===================================================================
--- gui/win32/dialogs.c	(revision 37341)
+++ gui/win32/dialogs.c	(working copy)
@@ -329,7 +329,7 @@
                     uiSetFile(NULL, file, STREAMTYPE_STREAM);
                     if((f = fopen(history, "wt+")))
                     {
-                        fprintf(f, file);
+                        fprintf(f, "%s", file);
                         fclose(f);
                     }
                     if(!parse_filename(file, playtree, mconfig, addurl? FALSE : TRUE))
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng