summaryrefslogtreecommitdiff
path: root/sunrpc/getrpcport.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/getrpcport.c')
-rw-r--r--sunrpc/getrpcport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/getrpcport.c b/sunrpc/getrpcport.c
index 2e12482abc..a8f1326f08 100644
--- a/sunrpc/getrpcport.c
+++ b/sunrpc/getrpcport.c
@@ -67,7 +67,7 @@ getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto)
buffer = __alloca (buflen);
}
- bcopy (hp->h_addr, (char *) &addr.sin_addr, hp->h_length);
+ memcpy ((char *) &addr.sin_addr, hp->h_addr, hp->h_length);
addr.sin_family = AF_INET;
addr.sin_port = 0;
return pmap_getport (&addr, prognum, versnum, proto);