summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/clnt_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/rpc/clnt_generic.c')
-rw-r--r--lib/libc/rpc/clnt_generic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/clnt_generic.c b/lib/libc/rpc/clnt_generic.c
index 44ac7b1229e..a01cd484cd2 100644
--- a/lib/libc/rpc/clnt_generic.c
+++ b/lib/libc/rpc/clnt_generic.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: clnt_generic.c,v 1.2 1996/07/20 06:12:21 deraadt Exp $ */
/* $NetBSD: clnt_generic.c,v 1.6 1995/06/03 22:37:21 mycroft Exp $ */
/*
@@ -32,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)clnt_generic.c 1.4 87/08/11 (C) 1987 SMI";*/
/*static char *sccsid = "from: @(#)clnt_generic.c 2.2 88/08/01 4.0 RPCSRC";*/
-static char *rcsid = "$NetBSD: clnt_generic.c,v 1.6 1995/06/03 22:37:21 mycroft Exp $";
+static char *rcsid = "$OpenBSD: clnt_generic.c,v 1.2 1996/07/20 06:12:21 deraadt Exp $";
#endif
/*
@@ -80,7 +81,7 @@ clnt_create(hostname, prog, vers, proto)
sin.sin_len = sizeof(struct sockaddr_in);
sin.sin_family = h->h_addrtype;
sin.sin_port = 0;
- bcopy(h->h_addr, (char*)&sin.sin_addr, h->h_length);
+ memcpy((char*)&sin.sin_addr, h->h_addr, h->h_length);
p = getprotobyname(proto);
if (p == NULL) {
rpc_createerr.cf_stat = RPC_UNKNOWNPROTO;