Subject: CVS commit: src/tools/compat
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 05/15/2005 21:31:26
Module Name:	src
Committed By:	christos
Date:		Sun May 15 21:31:26 UTC 2005

Modified Files:
	src/tools/compat: fgetln.c

Log Message:
Replace the original fgetln with a simpler one that:
1. Works if the last line does not end up in \n
2. Does not scan the string multiple times.
3. Does not copy the string, but writes it directly in the buffer.
4. Handles out of memory conditions gracefully.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/tools/compat/fgetln.c

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