1
0
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:
Volker Lendecke 2015-01-21 11:44:58 +01:00 committed by Jeremy Allison
parent 53486f00e9
commit 3e9e5e6d6f

View File

@ -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);