git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Rene Scharfe
Message 5 of 5 in “Implement safe_strncpy() as strlcpy() and use it more.”
  1. Implement safe_strncpy() as strlcpy() and use it more.Peter Eriksen, Jun 11, 2006
  2. YOSHIFUJI Hideaki / 吉藤英明Jun 11, 2006
  3. Peter EriksenJun 11, 2006
  4. Rene ScharfeJun 11, 2006
  5. Linus TorvaldsJun 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.