aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/strlcat.c
Commit message (Collapse)AuthorAgeFilesLines
* include: ssp: round out fortification of current set of headersKyle Evans2024-07-131-0/+2
| | | | | | | | | | | | | | | | | | | | ssp/ssp.h needed some improvements: - `len` isn't always a size_t, it may need casted - In some cases we may want to use a len that isn't specified as a parameter (e.g., L_ctermid), so __ssp_redirect() should be more flexible. - In other cases we may want additional checking, so pull all of the declaration bits out of __ssp_redirect_raw() so that some functions can implement the body themselves. strlcat/strlcpy should be the last of the fortified functions that get their own __*_chk symbols, and these cases are only done to be consistent with the rest of the str*() set. Reviewed by: markj Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D45679
* libc: Purge unneeded cdefs.hWarner Losh2023-11-011-1/+0
| | | | | | | | | These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Make strlcpy/strlcat slightly easier to read.Pedro F. Giffuni2015-04-061-24/+24
| | | | | | | | | Bring small upstream updates. Obtained from: OpenBSD Notes: svn path=/head/; revision=281135
* Add restrict qualifiers to the parameters to strlcpy() and strlcat().David Schultz2009-02-281-1/+1
| | | | | | | | The annotation mainly just serves as a hint that they're not intended for use with overlapping strings. Notes: svn path=/head/; revision=189133
* o ANSIfy.Xin LI2009-01-121-29/+12
| | | | | | | | | o Use ISC style copyright as did by the author. Obtained from: OpenBSD Notes: svn path=/head/; revision=187090
* Enable building with LIBC_SCCS defined.David E. O'Brien2004-10-161-1/+1
| | | | | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it> Notes: svn path=/head/; revision=136582
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-011-4/+1
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-04-291-1/+4
| | | | | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy Notes: svn path=/head/; revision=114256
* Remove 'register' keyword.David E. O'Brien2002-03-211-3/+3
| | | | Notes: svn path=/head/; revision=92889
* rcsid[]->__FBSDIDDavid E. O'Brien2001-11-071-5/+3
| | | | Notes: svn path=/head/; revision=86170
* Sync to OpenBSD (update comment and minor style change).Kris Kennaway2001-07-241-3/+4
| | | | | | | | Obtained from: OpenBSD MFC after: 1 week Notes: svn path=/head/; revision=80274
* Make the rcsid and FreeBSD IDs more sane in the wcs* and wmem* files.David E. O'Brien2001-05-241-2/+4
| | | | | | | Do the same for the non-wcs*/wmem* files while I'm here. Notes: svn path=/head/; revision=77117
* - Reverse the order of two loop invariant to ensure strlcat() does notChris D. Faulhaber2001-01-171-3/+6
| | | | | | | | | | | | | attempt to read memory when siz is 0 - Clarify comments referring to strlcat() usage PR: 24278, 24295 Submitted by: Tony Finch <dot@dotat.at> Richard Kettlewell <rjk@greenend.org.uk> Reviewed by: -audit Notes: svn path=/head/; revision=71191
* Use the latest version of these files from OpenBSD.Warner Losh1999-08-101-5/+5
| | | | | | | | | | | | | 1) Safty change from casper dik was added to OpenBSD's sources since I grabbed them. milltert@openbsd.org 2) Split up strlcpy to improve efficiency of the common case. milltert@openbsd.org 3) Cleanup of cross references for man page. {alex,aaron}@openbsd.org Pointed out by: deraadt@openbsd.org Notes: svn path=/head/; revision=49594
* Import strl{cat,cpy} from OpenBSD.Warner Losh1999-08-101-0/+71
Obtained from: OpenBSD Notes: svn path=/head/; revision=49593