Subject: Re: strl{cpy,cat} into libkern
To: None <itojun@iijlab.net>
From: Luke Mewburn <lukem@netbsd.org>
List: tech-kern
Date: 05/15/2003 13:04:39
On Thu, May 15, 2003 at 08:38:21AM +0900, itojun@iijlab.net wrote:
  | >Perhaps it may be right thing to completely rewrite strncpy() (not strcpy())
  | >by strlcpy() (and remove strncpy() from libkern), though.
  | 
  | 	bzzzt, completely wrong.  some code is written assuming that strncpy
  | 	does not terminate string.

Not only that, but there is code that depends upon strncpy()
zero-filling `dst' to `len' if strlen(`src') < `len'.

That's why "careful examination" is required... :)