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:
Daniel Stenberg 2025-05-30 11:20:05 +02:00
parent 54834b4ad3
commit fe81a80ae7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
39 changed files with 69 additions and 70 deletions

View file

@ -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;