From 90d82870b0fb0bc82b6a5a7f7619c0876db97113 Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Mon, 30 Aug 2010 15:27:05 +0200 Subject: 5 uint32_t's should be set, not 5 bytes. Signed-off-by: Jelmer Vernooij --- source4/lib/registry/regf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c index 58cc51c202..89b4327ba3 100644 --- a/source4/lib/registry/regf.c +++ b/source4/lib/registry/regf.c @@ -1748,7 +1748,7 @@ static WERROR regf_add_key(TALLOC_CTX *ctx, const struct hive_key *parent, nk.unknown_offset = -1; nk.num_values = 0; nk.values_offset = -1; - memset(nk.unk3, 0, 5); + memset(nk.unk3, 0, sizeof(nk.unk3)); nk.clsname_offset = -1; /* FIXME: fill in */ nk.clsname_length = 0; nk.key_name = name; -- cgit