mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:03:32 +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
|
|
@ -4187,7 +4187,7 @@ static CURLcode http_rw_hd(struct Curl_easy *data,
|
|||
CURLcode result = CURLE_OK;
|
||||
struct SingleRequest *k = &data->req;
|
||||
int writetype;
|
||||
DEBUGASSERT(!hd[hdlen]); /* null terminated */
|
||||
DEBUGASSERT(!hd[hdlen]); /* null-terminated */
|
||||
|
||||
*pconsumed = 0;
|
||||
if((0x0a == *hd) || (0x0d == *hd)) {
|
||||
|
|
@ -4548,7 +4548,7 @@ CURLcode Curl_http_write_resp_hd(struct Curl_easy *data,
|
|||
CURLcode result;
|
||||
size_t consumed;
|
||||
char tmp = 0;
|
||||
DEBUGASSERT(!hd[hdlen]); /* null terminated */
|
||||
DEBUGASSERT(!hd[hdlen]); /* null-terminated */
|
||||
|
||||
result = http_rw_hd(data, hd, hdlen, &tmp, 0, &consumed);
|
||||
if(!result && is_eos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue