aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/xdr_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/xdr_mem.c')
-rw-r--r--sunrpc/xdr_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sunrpc/xdr_mem.c b/sunrpc/xdr_mem.c
index 9cc3890..b328d59 100644
--- a/sunrpc/xdr_mem.c
+++ b/sunrpc/xdr_mem.c
@@ -132,7 +132,7 @@ xdrmem_getbytes (XDR *xdrs, caddr_t addr, u_int len)
{
if ((xdrs->x_handy -= len) < 0)
return FALSE;
- bcopy (xdrs->x_private, addr, len);
+ memcpy (addr, xdrs->x_private, len);
xdrs->x_private += len;
return TRUE;
}
@@ -146,7 +146,7 @@ xdrmem_putbytes (XDR *xdrs, const char *addr, u_int len)
{
if ((xdrs->x_handy -= len) < 0)
return FALSE;
- bcopy (addr, xdrs->x_private, len);
+ memcpy (xdrs->x_private, addr, len);
xdrs->x_private += len;
return TRUE;
}