summaryrefslogtreecommitdiff
path: root/lib/libc/string/strlcat.c
AgeCommit message (Collapse)Author
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2016-10-16Roll back uintptr_t cast changes after discussions with tedu, otto andDarren Tucker
others. C11 6.5.6.9 says: When two pointers are subtracted, both shall point to elements of the same array object, or one past the last element of the array object; the result is the difference of the subscripts of the two array elements. In these cases the objects are arrays of char so the result is defined, and we believe that the report is based on a compiler incorrectly trapping on defined behaviour.
2016-10-14Cast pointers to uintptr_t to avoid potential signedness errors.Darren Tucker
Based on patch from yuanjie.huang at windriver.com via OpenSSH bz#2608, with & ok millert, ok deraadt.
2015-08-31Add framework for resolving (pun intended) libc namespace issues, usingPhilip Guenther
wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@
2015-03-02Update comment to match code; Caspar SchutijserTodd C. Miller
2015-01-15Make strlcpy/strlcat slightly easier to read.Todd C. Miller
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
2005-03-30ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@Otto Moerbeek
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