mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
registry: Fix an aligment increase warning
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Feb 26 05:35:33 CET 2015 on sn-devel-104
This commit is contained in:
parent
53486f00e9
commit
3e9e5e6d6f
@ -188,7 +188,7 @@ static WERROR regsubkey_ctr_index_for_keyname(struct regsubkey_ctr *ctr,
|
||||
}
|
||||
|
||||
if (idx != NULL) {
|
||||
*idx = *(uint32_t *)data.dptr;
|
||||
memcpy(idx, data.dptr, sizeof(*idx));
|
||||
}
|
||||
|
||||
talloc_free(data.dptr);
|
||||
|
Loading…
Reference in New Issue
Block a user