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
Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Jun 11, 2006, 11:17 UTC
Message-ID
<448BFBD7.60900@lsrfire.ath.cx>
In-Reply-To
<20060611103358.GB10430@bohr.gbar.dtu.dk>
Peter Eriksen schrieb:
Show 11 quoted lines
> On Sun, Jun 11, 2006 at 07:15:40PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
>> In article <20060611100628.GA10430@bohr.gbar.dtu.dk> (at Sun, 11 Jun 2006 12:06:28 +0200), "Peter Eriksen" <s022018@student.dtu.dk> says:
>>
>>> I've taken strlcpy() from the OpenBSD CVS without attribution.  Is this
>>> allowed?  If it is, how should it be stated?
>> Please include full copyright information.
> 
> Where should this information go?  Just above the function
> safe_strncpy(), or at the top of path.c?  I believe path.c is GPL, so
> can this be mixed freely with BSD licensed code?  Should I put
> safe_strncpy() into a seperate file as with strlcpy()?

Yes... Or you could avoid all of this by using a GPL'd version, like the one from the Linux kernel (in lib/string.c).

René
Previous: Peter EriksenNext: Linus Torvalds
Message 4 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.