freebsd-dev/lib/libfetch
Don Lewis 77b822dbc0 Use strlcpy() instead of strncpy() to copy the string returned by
setlocale() so that static analyzers know that the string is NUL
terminated.  This was causing a false positive in Coverity even
though the longest string returned by setlocale() is ENCODING_LEN
(31) and we are copying into a 64 byte buffer.  This change is also
a bit of an optimization since we don't need the strncpy() feature
of padding the rest of the destination buffer with NUL characters.

Reported by:	Coverity
CID:		974654
2016-05-12 06:39:13 +00:00
..
common.c lib: minor spelling fixes in comments. 2016-05-01 19:37:33 +00:00
common.h Add support for arbitrary http requests 2014-06-05 22:16:26 +00:00
fetch.3 Fix bunch of .Xrs. 2016-03-28 16:48:28 +00:00
fetch.c Fix -Wunsequenced warning. 2013-06-29 15:51:27 +00:00
fetch.h Add support for arbitrary http requests 2014-06-05 22:16:26 +00:00
file.c Use fopen()'s newfangled "e" flag instead of explicit fcntl() calls. 2015-10-16 12:53:22 +00:00
ftp.c libfetch: replace 0 with NULL for pointers. 2016-04-09 18:08:21 +00:00
ftp.errors
http.c Use strlcpy() instead of strncpy() to copy the string returned by 2016-05-12 06:39:13 +00:00
http.errors Don't deny non-temporary redirects if the -A option is set (per 2012-10-22 03:00:10 +00:00
Makefile First pass through library packaging. 2016-02-04 21:16:35 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00