[MPlayer-dev-eng] [PATCH] vstream client support

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Feb 23 01:45:23 CET 2005


Hi,
On Tue, Feb 22, 2005 at 06:27:55PM -0600, Zoltan Hidvegi wrote:
> Reimar Döffinger wrote:
> > > +    vsnprintf(buf, 1024, format, va);
> > 
> > This can produce a non null-terminated string. Add e.g. buf[1023] = 0;
> 
> No, vsnprintf always null-terminates.  Read the manpage or the C99
> standard.

Right... I always confuse that... But I still prefer not to read the C99
standard tonight, I don't want to get nightmares *g*

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list