summaryrefslogtreecommitdiff
path: root/lib/libc/string/strlcat.c
AgeCommit message (Collapse)Author
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-04-12Change copyright to a less restrictive ISC-style license to encourageTodd C. Miller
people to bundle this code.
2003-03-14ANSI function headersTodd C. Miller
2001-05-13type of function on seperate lineTheo de Raadt
2001-05-07Back out last change, it is intended behavior and update the blockTodd C. Miller
comment to reflect this fact. Too early in the morning for me I guess.
2001-05-07strlcat() should return strlen(dst) + strlen(src) when size parameterTodd C. Miller
<= strlen(dst). Bug report by mark.murnane@ireland.sun.com via the GNOME folks.
2001-01-13Sync function comment with man page; fanf@covalent.netTodd C. Miller
2001-01-12Reverse the order of two loop invariant to make 'strlcat(0, "foo", 0)'Todd C. Miller
not get a SEGV; Richard Kettlewell <rjk@greenend.org.uk>
2000-11-24comment fix; strlcat returns strlen(initial dst) + strlen(src).Jun-ichiro itojun Hagino
1999-06-17When finding the end of dst, never traverse more than siz bytes. ThisTodd C. Miller
keeps us from misbehaving if the user gives us a src string that is not NUL-terminated. This is one of those "should not happen" cases but it is good to play it safe. Pointed out by Casper Dik <casper@holland.sun.com>
1998-07-01add strlcpy/strlcat, safe and sensible string copy/appendTodd C. Miller