diff options
author | dartraiden <wowemuh@gmail.com> | 2020-07-07 22:32:37 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2020-07-07 22:33:07 +0300 |
commit | c1e254b55d930cccbae653320442fb7669be7692 (patch) | |
tree | 44d5ec46130218ac0e2cc8147613ff618b686657 /libs/libcurl/src/dotdot.c | |
parent | 9a8de7bc1afb5f72ddb6967c8fc32209ae3a73dd (diff) |
libcurl: update to 7.71.1
Diffstat (limited to 'libs/libcurl/src/dotdot.c')
-rw-r--r-- | libs/libcurl/src/dotdot.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/libcurl/src/dotdot.c b/libs/libcurl/src/dotdot.c index fe4f4971f1..ce9a052143 100644 --- a/libs/libcurl/src/dotdot.c +++ b/libs/libcurl/src/dotdot.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 @@ -39,7 +39,7 @@ * Curl_dedotdotify() * @unittest: 1395 * - * This function gets a zero-terminated path with dot and dotdot sequences + * This function gets a null-terminated path with dot and dotdot sequences * passed in and strips them off according to the rules in RFC 3986 section * 5.2.4. * @@ -62,7 +62,7 @@ char *Curl_dedotdotify(const char *input) if(!out) return NULL; /* out of memory */ - *out = 0; /* zero terminates, for inputs like "./" */ + *out = 0; /* null-terminates, for inputs like "./" */ /* get a cloned copy of the input */ clone = strdup(input); @@ -129,7 +129,7 @@ char *Curl_dedotdotify(const char *input) if(*outptr == '/') break; } - *outptr = 0; /* zero-terminate where it stops */ + *outptr = 0; /* null-terminate where it stops */ } else if(!strcmp("/..", clone)) { clone[2]='/'; @@ -141,7 +141,7 @@ char *Curl_dedotdotify(const char *input) if(*outptr == '/') break; } - *outptr = 0; /* zero-terminate where it stops */ + *outptr = 0; /* null-terminate where it stops */ } /* D. if the input buffer consists only of "." or "..", then remove |