Re: rev 7674 - trunk/gs/src

"SaGS" <[email protected]> Sun, 4 Feb 2007 17:50:18 +0200
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <001301c74874$2dfe5f80$e90e6150@dodo>
----- Original Message -----
From: "Leonardo" <[email protected]>
To: "SaGS" <[email protected]>; "gs-code-review" <gs-code-review@ghost=
script.com>
Sent: Sunday, 04 February 2007 12:28
Subject: Re: [gs-code-review] Re: [gs-cvs] rev 7674 - trunk/gs/src


> _vsnprintf appears working with MSVC8, so I'll commit it soon.
>
> Why do you need buffer[n - 1] =3D 0 ?
> _vsnprintf looks doing that.

The docs say:

    "If the number of characters to write exceeds count, then count
    characters are written and =E2=80=931 is returned."

That means no trailing '\0'. "buffer[count - 1] =3D 0" fixes this.

> ...