summaryrefslogtreecommitdiff
path: root/src/tool_getparam.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 /src/tool_getparam.c
parent8acfb932ef9be1209491bc68d38445c4d6eaab6e (diff)
downloadcurl-d6c67eae703575387b1d5be5e9cd110d04914cab.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 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 1ab3983f4..340962145 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -966,7 +966,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
if(*p) {
/* if there's anything more than a plain decimal number */
rc = sscanf(p, " - %6s", lrange);
- *p = 0; /* zero terminate to make str2unum() work below */
+ *p = 0; /* null-terminate to make str2unum() work below */
}
else
rc = 0;
@@ -1517,7 +1517,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
/* Automatic referer requested, this may be combined with a
set initial one */
config->autoreferer = TRUE;
- *ptr = 0; /* zero terminate here */
+ *ptr = 0; /* null-terminate here */
}
else
config->autoreferer = FALSE;