mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
bufref: rename *memdup() to *memdup0()
To make it clearer to readers of the code that the resulting dup also has a null terminator. Something a "normal" memdup() does not provide. Closes #19833
This commit is contained in:
parent
fe7703a0b3
commit
1def380032
9 changed files with 20 additions and 19 deletions
|
|
@ -831,7 +831,7 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data,
|
|||
size += hostlen;
|
||||
|
||||
/* Return the binary blob. */
|
||||
result = Curl_bufref_memdup(out, ntlmbuf, size);
|
||||
result = Curl_bufref_memdup0(out, ntlmbuf, size);
|
||||
|
||||
error:
|
||||
curlx_free(ntlmv2resp); /* Free the dynamic buffer allocated for NTLMv2 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue