aboutsummaryrefslogtreecommitdiffstats
path: root/lib/strtok.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strtok.c')
-rw-r--r--lib/strtok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strtok.c b/lib/strtok.c
index be8f4812..ba6e0258 100644
--- a/lib/strtok.c
+++ b/lib/strtok.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -52,7 +52,7 @@ Curl_strtok_r(char *ptr, const char *sep, char **end)
if(**end) {
/* the end is not a null byte */
- **end = '\0'; /* zero terminate it! */
+ **end = '\0'; /* null-terminate it! */
++*end; /* advance the last pointer to beyond the null byte */
}