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

Alexander Strasser eclipse7 at gmx.net
Fri Dec 19 14:09:55 CET 2014


Hi Stephen!

On 2014-12-18 09:09 -0800, Stephen Sheldon wrote:
> 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.

  Applied.

Thank you,
  Alexander
> 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))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20141219/4496a707/attachment.asc>


More information about the MPlayer-dev-eng mailing list