[Mplayer-cvslog] CVS: main mp_msg.c,1.23,1.24

D Richard Felker III dalias at aerifal.cx
Fri Sep 12 22:12:31 CEST 2003


On Fri, Sep 12, 2003 at 05:46:39PM +0200, pl CVS wrote:
> Update of /cvsroot/mplayer/main
> In directory mail:/var/tmp.root/cvs-serv17005
> 
> Modified Files:
> 	mp_msg.c 
> Log Message:
> force a new line if a message is very long
> 
> 
> Index: mp_msg.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/mp_msg.c,v
> retrieving revision 1.23
> retrieving revision 1.24
> diff -u -r1.23 -r1.24
> --- mp_msg.c	13 Jul 2003 14:43:28 -0000	1.23
> +++ mp_msg.c	12 Sep 2003 15:46:16 -0000	1.24
> @@ -68,6 +68,7 @@
>      va_start(va, format);
>      vsnprintf(tmp, MSGSIZE_MAX, mp_gettext(format), va);
>      va_end(va);
> +    tmp[MSGSIZE_MAX-2] = '\n';
>      tmp[MSGSIZE_MAX-1] = 0;

WTF?!? This will overwrite one character of the message, and serves no
purpose whatsoever. Please reverse!

Rich



More information about the MPlayer-cvslog mailing list