mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Style: use structure assignment rather than memcpy() to copy a
structure.
This commit is contained in:
parent
bedffadccc
commit
87541d3110
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue