Subject: Re: CVS commit: basesrc
To: None <lukem@netbsd.org>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: source-changes
Date: 09/09/1999 08:28:50
Luke Mewburn wrote:
> 
> Module Name:	basesrc
> Committed By:	lukem
> Date:		Wed Sep  8 22:56:57 UTC 1999
> 
> Modified Files:
> 	basesrc/lib/libc/string: Makefile.inc strlcat.c strlcpy.3 strlcpy.c
> 
> Log Message:
> add netbsd rcsid's
> update for knf (return value on separate line to function name...)
> check dst and src aren't null pointers before trying to use them
> enable strlcat/strlcpy

Please DO NOT check the dst and src whether they are null. Feedeing
NULL pointer to it is a programming error and I strongly prefer
sigsegving immedially than running into some other problem later.
Lack of NULL check in libc routines helped me many times to uncover
the real problem.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
"The only way how to get rid temptation is to yield to it." -- Oscar Wilde