diff options
author | ng0 <ng0@infotropique.org> | 2017-10-06 14:15:34 +0000 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-10-06 14:15:34 +0000 |
commit | 64d20516fc61405cf0de4db0b0b8c52b3cafe917 (patch) | |
tree | 804233b6e02880b5774b9cc3a015ddaeb036717a /lib/strdup.c | |
parent | dc3acc1603d57da12f54d5e360e40eda12b1066c (diff) | |
parent | 3ea76790571c1f7cf1bed34fabffd3cc20ad3dd3 (diff) | |
download | gnurl-64d20516fc61405cf0de4db0b0b8c52b3cafe917.tar.gz gnurl-64d20516fc61405cf0de4db0b0b8c52b3cafe917.tar.bz2 gnurl-64d20516fc61405cf0de4db0b0b8c52b3cafe917.zip |
Merge tag 'curl-7_56_0'
curl 7.56.0
Diffstat (limited to 'lib/strdup.c')
-rw-r--r-- | lib/strdup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/strdup.c b/lib/strdup.c index 8d6258e81..a671f5c55 100644 --- a/lib/strdup.c +++ b/lib/strdup.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2017, 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 @@ -44,11 +44,11 @@ char *curlx_strdup(const char *str) if(len >= ((size_t)-1) / sizeof(char)) return (char *)NULL; - newstr = malloc((len+1)*sizeof(char)); + newstr = malloc((len + 1)*sizeof(char)); if(!newstr) return (char *)NULL; - memcpy(newstr, str, (len+1)*sizeof(char)); + memcpy(newstr, str, (len + 1)*sizeof(char)); return newstr; |