]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: add and use Curl_strndup()
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Nov 2023 12:47:15 +0000 (13:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Nov 2023 19:35:20 +0000 (20:35 +0100)
commitd3b3ba35a5c4f862df2aa3e12de983e5457b429a
tree84834e776c30036c1ca5967e1e62a905d1df3e48
parentfdaed85b02250e27bcea86e910d600179d403efc
lib: add and use Curl_strndup()

The Curl_strndup() function is similar to memdup(), but copies 'n' bytes
then adds a terminating null byte ('\0').

Closes #12251
lib/altsvc.c
lib/cookie.c
lib/formdata.c
lib/hsts.c
lib/strdup.c
lib/strdup.h
lib/urlapi.c