Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 01/29/2001 03:22:32
Module Name:	basesrc
Committed By:	christos
Date:		Mon Jan 29 01:22:32 UTC 2001

Modified Files:
	basesrc/lib/libterm: termcap.c

Log Message:
- use MAXPATHLEN to get the array size for the path we store.
- use strlcpy() instead of strncpy() to avoid the off-by-one error
  and the three missing '\0' terminations.
- perform bounds checks to make sure we don't turn this into a random
  memory writing tool using setenv HOME `perl -e 'print "a"x5000'`


To generate a diff of this commit:
cvs rdiff -r1.37 -r1.38 basesrc/lib/libterm/termcap.c

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