[klibc] [PATCH] off-by-one in asprintf/vasprintf

H. Peter Anvin hpa at zytor.com
Fri Oct 22 13:12:03 PDT 2004


Thayne Harbaugh wrote:
> Fix an off-by-one in asprintf and vasprintf.  The return of vsnprintf is
> the number of bytes *not* including the terminating '\0'.  The size
> argument to vsnprintf is the number of bytes *including* the terminating
> '\0'.

This patch came through quoted-printable; it's simple enough I can just 
redo it by hand, though.

	-hpa



More information about the klibc mailing list