summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/privileges.c2
1 files changed, 1 insertions, 1 deletions
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;
}