git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
780de03
)
libcli/security Don't memcpy a uint64_t value, just assign it.
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 27 Aug 2010 01:26:20 +0000
(11:26 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/libcli/security/privileges.c
b/libcli/security/privileges.c
index c9756ab75686f5de71c90f786fb011da4b2186c7..63765ff45430a88cf780b18aa2ebef525e424a66 100644
(file)
--- 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;
}