mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:23:39 +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
|
|
@ -42,7 +42,7 @@ void Curl_bufref_set(struct bufref *br, const void *ptr, size_t len,
|
|||
const char *Curl_bufref_ptr(const struct bufref *br);
|
||||
const unsigned char *Curl_bufref_uptr(const struct bufref *br);
|
||||
size_t Curl_bufref_len(const struct bufref *br);
|
||||
CURLcode Curl_bufref_memdup(struct bufref *br, const void *ptr, size_t len);
|
||||
CURLcode Curl_bufref_memdup0(struct bufref *br, const void *ptr, size_t len);
|
||||
void Curl_bufref_free(struct bufref *br);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue