freebsd-dev/lib/libfetch
John Baldwin 611cf39267 libfetch: Use memcpy in place of an odd strncpy.
The length passed to strncpy is the length of the source string, not
the destination buffer.  This triggers a non-fatal warning in GCC 12.
Hoewver, the code is also odd.  It is really just a memcpy of the
string without its nul terminator.  For that use case, memcpy is
clearer.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D36824
2022-10-03 16:10:43 -07:00
..
common.c libfetch: Use memcpy in place of an odd strncpy. 2022-10-03 16:10:43 -07:00
common.h fetch(3): Add SOCKS5 support 2020-02-15 18:03:16 +00:00
fetch.3 There's no PEM(3) anywhere around; delete reference. 2022-09-17 13:14:01 +02:00
fetch.c libfetch: disallow invalid escape sequences 2020-02-05 16:55:00 +00:00
fetch.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
file.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
ftp.c Fix libfetch out of bounds read. 2021-08-24 11:26:45 -07:00
ftp.errors
http.c libfetch: remove a set-but-not-uswed variable 2022-04-20 16:58:33 +02:00
http.errors
Makefile pkgbase: Create a FreeBSD-fetch package 2021-12-21 10:17:46 +01:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00