summaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-08-11 13:31:03 +0000
committerBodo Möller <bodo@openssl.org>1999-08-11 13:31:03 +0000
commit690233bccc8214cb67be9347078e08a29ee10a62 (patch)
treea856b5a6021a85a715da48e164b74ab87d4c94ce /crypto/bio/b_sock.c
parentfd52057729fcf050734882069e6fa3f02b555cd2 (diff)
Submitted by: Lidong Zhou <ldzhou@cs.cornell.edu>
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r--crypto/bio/b_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index d29b29ff8b..561d166004 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -282,12 +282,12 @@ static struct hostent *ghbn_dup(struct hostent *a)
j=strlen(a->h_name)+1;
if ((ret->h_name=Malloc(j)) == NULL) goto err;
- memcpy((char *)ret->h_name,a->h_name,j+1);
+ memcpy((char *)ret->h_name,a->h_name,j);
for (i=0; a->h_aliases[i] != NULL; i++)
{
j=strlen(a->h_aliases[i])+1;
if ((ret->h_aliases[i]=Malloc(j)) == NULL) goto err;
- memcpy(ret->h_aliases[i],a->h_aliases[i],j+1);
+ memcpy(ret->h_aliases[i],a->h_aliases[i],j);
}
ret->h_length=a->h_length;
ret->h_addrtype=a->h_addrtype;