Re: [PATCH] Implement safe_strncpy() as strlcpy() and use it more.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jun 11, 2006, 16:45 UTC
- Message-ID
- <Pine.LNX.4.64.0606110942560.5498@g5.osdl.org>
- In-Reply-To
- <20060611103358.GB10430@bohr.gbar.dtu.dk>
On Sun, 11 Jun 2006, Peter Eriksen wrote:
> > > > Please include full copyright information. > > Where should this information go?
Gaah, for soemthing as trivial as strlcpy(), please either just rewrite the function (you can only do it in so many ways), since the copyright message is _bigger_ and more annoying than the code itself.
Or, just attribute it. Say "this is a trivial implementation 'strlcpy()' shamelessly stolen from OpenBSD, originally under a BSD license, converted to GPLv2"
That whole "big copyright messages" thign is a _disease_.
Linus