From cdda15c062369d94bc468dce7b541ea505d664e5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 27 Aug 2010 11:26:20 +1000 Subject: libcli/security Don't memcpy a uint64_t value, just assign it. Signed-off-by: Andrew Tridgell --- libcli/security/privileges.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcli') diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c index c9756ab756..63765ff454 100644 --- a/libcli/security/privileges.c +++ b/libcli/security/privileges.c @@ -83,7 +83,7 @@ bool se_priv_copy( uint64_t *dst, const uint64_t *src ) if ( !dst || !src ) return false; - memcpy( dst, src, sizeof(uint64_t) ); + *dst = *src; return true; } -- cgit