libcli/security Don't memcpy a uint64_t value, just assign it.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 27 Aug 2010 01:26:20 +0000 (11:26 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Sep 2010 08:46:08 +0000 (18:46 +1000)
Signed-off-by: Andrew Tridgell <tridge@samba.org>
libcli/security/privileges.c

index c9756ab75686f5de71c90f786fb011da4b2186c7..63765ff45430a88cf780b18aa2ebef525e424a66 100644 (file)
@@ -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;
 }