Subject: CVS commit: src/bin/date
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 07/23/2006 20:39:10
Module Name:	src
Committed By:	christos
Date:		Sun Jul 23 20:39:10 UTC 2006

Modified Files:
	src/bin/date: date.c

Log Message:
PR/34055: Kevin Massey: Date uses a fixed 1K buffer for strftime
but does not check when strftime fails because the buffer is too small.
Our implementation of strftime does not NUL terminat the buffer
on failure (it does not have to; the results are undefined), so
garbage gets printed. Use a dynamically allocated buffer instead.


To generate a diff of this commit:
cvs rdiff -r1.42 -r1.43 src/bin/date/date.c

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