summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/rpc_callmsg.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-07-20 06:12:14 +0000
committerderaadt <deraadt@openbsd.org>1996-07-20 06:12:14 +0000
commit73b69cd935d225117f9210e3f007e404ed4d15bb (patch)
tree940a03b8e5888afb4133a3e0310a391bcec80c6c /lib/libc/rpc/rpc_callmsg.c
parentbogus frees; from jraynard@freebsd.org (diff)
downloadwireguard-openbsd-73b69cd935d225117f9210e3f007e404ed4d15bb.tar.xz
wireguard-openbsd-73b69cd935d225117f9210e3f007e404ed4d15bb.zip
bcopy->memcpy & tag
Diffstat (limited to 'lib/libc/rpc/rpc_callmsg.c')
-rw-r--r--lib/libc/rpc/rpc_callmsg.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/rpc/rpc_callmsg.c b/lib/libc/rpc/rpc_callmsg.c
index 535459485e3..d798f9fb7b5 100644
--- a/lib/libc/rpc/rpc_callmsg.c
+++ b/lib/libc/rpc/rpc_callmsg.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: rpc_callmsg.c,v 1.2 1996/07/20 06:12:37 deraadt Exp $ */
/* $NetBSD: rpc_callmsg.c,v 1.4 1995/04/29 05:26:31 cgd Exp $ */
/*
@@ -32,7 +33,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)rpc_callmsg.c 1.4 87/08/11 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)rpc_callmsg.c 2.1 88/07/29 4.0 RPCSRC";*/
-static char *rcsid = "$NetBSD: rpc_callmsg.c,v 1.4 1995/04/29 05:26:31 cgd Exp $";
+static char *rcsid = "$OpenBSD: rpc_callmsg.c,v 1.2 1996/07/20 06:12:37 deraadt Exp $";
#endif
/*
@@ -86,14 +87,14 @@ xdr_callmsg(xdrs, cmsg)
IXDR_PUT_ENUM(buf, oa->oa_flavor);
IXDR_PUT_LONG(buf, oa->oa_length);
if (oa->oa_length) {
- bcopy(oa->oa_base, (caddr_t)buf, oa->oa_length);
+ memcpy((caddr_t)buf, oa->oa_base, oa->oa_length);
buf += RNDUP(oa->oa_length) / sizeof (int32_t);
}
oa = &cmsg->rm_call.cb_verf;
IXDR_PUT_ENUM(buf, oa->oa_flavor);
IXDR_PUT_LONG(buf, oa->oa_length);
if (oa->oa_length) {
- bcopy(oa->oa_base, (caddr_t)buf, oa->oa_length);
+ memcpy((caddr_t)buf, oa->oa_base, oa->oa_length);
/* no real need....
buf += RNDUP(oa->oa_length) / sizeof (int32_t);
*/
@@ -134,7 +135,7 @@ xdr_callmsg(xdrs, cmsg)
return (FALSE);
}
} else {
- bcopy((caddr_t)buf, oa->oa_base,
+ memcpy(oa->oa_base, (caddr_t)buf,
oa->oa_length);
/* no real need....
buf += RNDUP(oa->oa_length) /
@@ -168,7 +169,7 @@ xdr_callmsg(xdrs, cmsg)
return (FALSE);
}
} else {
- bcopy((caddr_t)buf, oa->oa_base,
+ memcpy(oa->oa_base, (caddr_t)buf,
oa->oa_length);
/* no real need...
buf += RNDUP(oa->oa_length) /