]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: rename Curl_strndup to Curl_memdup0 to avoid misunderstanding
authorDaniel Stenberg <daniel@haxx.se>
Fri, 8 Dec 2023 13:27:29 +0000 (14:27 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 8 Dec 2023 16:22:33 +0000 (17:22 +0100)
commit7c992dd9f89ee219e7f3395211b8f7bdfebc35c3
tree577467ed2b47cfa15427e403c883994c0c436497
parent6d8dc2f636cd873922f67ea77c1678698e911344
lib: rename Curl_strndup to Curl_memdup0 to avoid misunderstanding

Since the copy does not stop at a null byte, let's not call it anything
that makes you think it works like the common strndup() function.

Based on feedback from Jay Satiro, Stefan Eissing and Patrick Monnerat

Closes #12490
15 files changed:
lib/altsvc.c
lib/bufref.c
lib/cookie.c
lib/formdata.c
lib/ftp.c
lib/hsts.c
lib/http.c
lib/rtsp.c
lib/strdup.c
lib/strdup.h
lib/urlapi.c
lib/vauth/ntlm_sspi.c
lib/vssh/wolfssh.c
lib/vtls/mbedtls.c
lib/vtls/sectransp.c