From 3e9e5e6d6f1a1ccabdf3f1860e8608ffec197e86 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 21 Jan 2015 11:44:58 +0100 Subject: [PATCH] registry: Fix an aligment increase warning Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Feb 26 05:35:33 CET 2015 on sn-devel-104 --- source3/registry/reg_objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c index baa3000eb67..1c9e79dfece 100644 --- a/source3/registry/reg_objects.c +++ b/source3/registry/reg_objects.c @@ -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);