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

@ -227,7 +227,7 @@ OM_uint32 gss_init_sec_context(OM_uint32 *min,
return GSS_S_FAILURE;
}
/* Overwrite null terminator */
/* Overwrite null-terminator */
memset(token + used, 'A', length - used);
*context_handle = ctx;

View file

@ -163,7 +163,7 @@ static int readline(char **buffer, size_t *bufsize, size_t *length,
*
* If the source buffer is indicated to be base64 encoded, this appends the
* decoded data, binary or whatever, to the destination. The source buffer
* may not hold binary data, only a null terminated string is valid content.
* may not hold binary data, only a null-terminated string is valid content.
*
* Destination buffer will be enlarged and relocated as needed.
*
@ -264,7 +264,7 @@ static int decodedata(char **buf, /* dest buffer */
* and the size of the data is stored at the addresses that caller specifies.
*
* If the returned data is a string the returned size will be the length of
* the string excluding null termination. Otherwise it will just be the size
* the string excluding null-termination. Otherwise it will just be the size
* of the returned binary data.
*
* Calling function is responsible to free returned buffer.