[MPlayer-dev-eng] [PATCH] Do not use non-literal arguments for mp_msg format string

Alexander Strasser eclipse7 at gmx.net
Sun Jan 26 12:39:09 CET 2014


On 2014-01-26 05:21 +0100, Alexander Strasser wrote:
> On 2014-01-26 02:16 +0100, Ingo Brückl wrote:
> > Alexander Strasser wrote on Sun, 26 Jan 2014 01:30:17 +0100:
> > 
> > > diff --git a/gui/interface.c b/gui/interface.c
> > > index 6e2387e..fdd6db4 100644
> > > --- a/gui/interface.c
> > > +++ b/gui/interface.c
> > > @@ -1183,7 +1183,7 @@ void gmp_msg(int mod, int lev, const char *format, ...)
> > >      vsnprintf(msg, sizeof(msg), format, va);
> > >      va_end(va);
> > >
> > > -    mp_msg(mod, lev, msg);
> > > +    mp_msg(mod, lev, "%s", msg);
> > 
> > Sure!
> 
>   OK, thanks for having a look!

  Forget to say: patch committed.

[...]

  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140126/ea3a428f/attachment.asc>


More information about the MPlayer-dev-eng mailing list