Subject: CVS commit: [netbsd-1-6] src/lib/libc/stdio
To: None <>
From: James Chacon <>
List: source-changes
Date: 01/10/2003 08:33:20
Module Name:	src
Committed By:	jmc
Date:		Fri Jan 10 06:33:19 UTC 2003

Modified Files:
	src/lib/libc/stdio [netbsd-1-6]: snprintf.c vsnprintf.c

Log Message:
Pull up revisions 1.16-1.17 (requested by kristerw in ticket #1059)
 Fix two bugs:
 1. snprintf(foo, 0. XXX) is guaranteed not to write in foo by the
    standard (ISO/IEC 9899 but our implementation handles this
    as if the buffer has a size of (size_t)-1.
 2. snprintf(NULL, 0, XXX) leaks memory since cantwrite() allocates
    memory if _bf._base == NULL, and this buffer is never freed
    (PR 16483).

To generate a diff of this commit:
cvs rdiff -r1.15 -r1.15.2.1 src/lib/libc/stdio/snprintf.c
cvs rdiff -r1.16 -r1.16.2.1 src/lib/libc/stdio/vsnprintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.