summaryrefslogtreecommitdiff
path: root/lib/cookie.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/cookie.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/cookie.c')
-rw-r--r--lib/cookie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index 68054e1c4..cb7d94b10 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -755,7 +755,7 @@ Curl_cookie_add(struct Curl_easy *data,
co->path = malloc(pathlen + 1); /* one extra for the zero byte */
if(co->path) {
memcpy(co->path, path, pathlen);
- co->path[pathlen] = 0; /* zero terminate */
+ co->path[pathlen] = 0; /* null-terminate */
co->spath = sanitize_cookie_path(co->path);
if(!co->spath)
badcookie = TRUE; /* out of memory bad */