Web lists-archives.com

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




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))

Attachment: pgpth6mG4aDUf.pgp
Description: PGP signature

_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng