diff options
Diffstat (limited to 'source4/lib/registry')
-rw-r--r-- | source4/lib/registry/regf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |