aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/clnt_gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/clnt_gen.c')
-rw-r--r--sunrpc/clnt_gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/clnt_gen.c b/sunrpc/clnt_gen.c
index 27e0272..251ad88 100644
--- a/sunrpc/clnt_gen.c
+++ b/sunrpc/clnt_gen.c
@@ -110,7 +110,7 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
sin.sin_family = h->h_addrtype;
sin.sin_port = 0;
__bzero (sin.sin_zero, sizeof (sin.sin_zero));
- bcopy (h->h_addr, (char *) &sin.sin_addr, h->h_length);
+ memcpy ((char *) &sin.sin_addr, h->h_addr, h->h_length);
prtbuflen = 1024;
prttmpbuf = __alloca (prtbuflen);