Style: use structure assignment rather than memcpy() to copy a

structure.
This commit is contained in:
Garrett Wollman 2009-11-25 04:53:38 +00:00
parent bedffadccc
commit 87541d3110
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=199787

View file

@ -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);