mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
badwords: prefer 'null-terminated'
Aligning with existing text. Closes #20979
This commit is contained in:
parent
a3699e8b9e
commit
454db7aeee
8 changed files with 13 additions and 11 deletions
|
|
@ -794,7 +794,7 @@ CURLcode Curl_xfer_write_resp_hd(struct Curl_easy *data,
|
|||
const char *hd0, size_t hdlen, bool is_eos)
|
||||
{
|
||||
if(data->conn->scheme->run->write_resp_hd) {
|
||||
DEBUGASSERT(!hd0[hdlen]); /* null terminated */
|
||||
DEBUGASSERT(!hd0[hdlen]); /* null-terminated */
|
||||
/* protocol handlers offering this function take full responsibility
|
||||
* for writing all received download data to the client. */
|
||||
return data->conn->scheme->run->write_resp_hd(data, hd0, hdlen, is_eos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue