misc: null-terminate

Make use of this term consistently.

Closes #9527
This commit is contained in:
Daniel Stenberg 2022-09-17 17:32:21 +02:00
parent db02e0e980
commit 307b7543ea
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
19 changed files with 26 additions and 26 deletions

View file

@ -212,7 +212,7 @@ CURLcode Curl_rand(struct Curl_easy *data, unsigned char *rnd, size_t num)
/*
* Curl_rand_hex() fills the 'rnd' buffer with a given 'num' size with random
* hexadecimal digits PLUS a zero terminating byte. It must be an odd number
* hexadecimal digits PLUS a null-terminating byte. It must be an odd number
* size.
*/
@ -235,7 +235,7 @@ CURLcode Curl_rand_hex(struct Curl_easy *data, unsigned char *rnd,
/* make sure it fits in the local buffer and that it is an odd number! */
return CURLE_BAD_FUNCTION_ARGUMENT;
num--; /* save one for zero termination */
num--; /* save one for null-termination */
result = Curl_rand(data, buffer, num/2);
if(result)