summaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/lib/strdup.c
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/curl/lib/strdup.c
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/curl/lib/strdup.c')
-rw-r--r--contrib/libs/curl/lib/strdup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/curl/lib/strdup.c b/contrib/libs/curl/lib/strdup.c
index cd47909ade2..9af47ea4734 100644
--- a/contrib/libs/curl/lib/strdup.c
+++ b/contrib/libs/curl/lib/strdup.c
@@ -5,11 +5,11 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
- * are also available at https://curl.se/docs/copyright.html.
+ * are also available at https://curl.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
@@ -39,13 +39,13 @@ char *curlx_strdup(const char *str)
if(!str)
return (char *)NULL;
- len = strlen(str) + 1;
+ len = strlen(str) + 1;
- newstr = malloc(len);
+ newstr = malloc(len);
if(!newstr)
return (char *)NULL;
- memcpy(newstr, str, len);
+ memcpy(newstr, str, len);
return newstr;
}
#endif