mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:43:33 +03:00
spelling: call it null-terminate consistently
With a dash, using two Ls. Also for different forms of the word.
Use NULL in all uppercase if it means a zero pointer.
Follow-up to 307b7543ea
Closes #17489
This commit is contained in:
parent
54834b4ad3
commit
fe81a80ae7
39 changed files with 69 additions and 70 deletions
|
|
@ -248,7 +248,7 @@ size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
|
|||
if(hdrcbdata->honor_cd_filename &&
|
||||
hdrcbdata->config->show_headers) {
|
||||
/* still awaiting the Content-Disposition header, store the header in
|
||||
memory. Since it is not zero terminated, we need an extra dance. */
|
||||
memory. Since it is not null-terminated, we need an extra dance. */
|
||||
char *clone = aprintf("%.*s", (int)cb, str);
|
||||
if(clone) {
|
||||
struct curl_slist *old = hdrcbdata->headlist;
|
||||
|
|
@ -440,7 +440,7 @@ void write_linked_location(CURL *curl, const char *location, size_t loclen,
|
|||
if(!u)
|
||||
goto locout;
|
||||
|
||||
/* Create a NUL-terminated and whitespace-stripped copy of Location: */
|
||||
/* Create a null-terminated and whitespace-stripped copy of Location: */
|
||||
copyloc = malloc(llen + 1);
|
||||
if(!copyloc)
|
||||
goto locout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue