From 87541d31107d31e475960312760e2a63d1ecbde8 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Wed, 25 Nov 2009 04:53:38 +0000 Subject: [PATCH] Style: use structure assignment rather than memcpy() to copy a structure. --- lib/libc/rpc/getrpcent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/rpc/getrpcent.c b/lib/libc/rpc/getrpcent.c index abee480b35f5..1f198fa9a0b6 100644 --- a/lib/libc/rpc/getrpcent.c +++ b/lib/libc/rpc/getrpcent.c @@ -698,7 +698,7 @@ rpc_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, return (NS_RETURN); } - memcpy(&new_rpc, rpc, sizeof(struct rpcent)); + new_rpc = *rpc; *buffer_size = desired_size; memset(buffer, 0, desired_size);