summaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-25 11:38:25 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-25 11:45:17 +0200
commitd6c67eae703575387b1d5be5e9cd110d04914cab (patch)
treebeef06c929271c248242e78e179e5d6d0f2957f9 /lib/formdata.c
parent8acfb932ef9be1209491bc68d38445c4d6eaab6e (diff)
downloadcurl-bagder/null-terminate.tar.gz
terminology: call them null-terminated stringsbagder/null-terminate
Updated terminology in docs, comments and phrases to refer to C strings as "null-terminated". Done to unify with how most other C oriented docs refer of them and what users in general seem to prefer (based on a single highly unscientific poll on twitter). Reported-by: coinhubs on github Fixes #5598
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index dfa44bc76..1cab2c5c2 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -602,7 +602,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
/* Note that there's small risk that form->name is NULL here if the
app passed in a bad combo, so we better check for that first. */
if(form->name) {
- /* copy name (without strdup; possibly not nul-terminated) */
+ /* copy name (without strdup; possibly not null-terminated) */
form->name = Curl_memdup(form->name, form->namelength?
form->namelength:
strlen(form->name) + 1);
@@ -771,7 +771,7 @@ void curl_formfree(struct curl_httppost *form)
}
-/* Set mime part name, taking care of non nul-terminated name string. */
+/* Set mime part name, taking care of non null-terminated name string. */
static CURLcode setname(curl_mimepart *part, const char *name, size_t len)
{
char *zname;