5 uint32_t's should be set, not 5 bytes.
authorWilco Baan Hofman <wilco@baanhofman.nl>
Mon, 30 Aug 2010 13:27:05 +0000 (15:27 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 3 Oct 2010 13:31:37 +0000 (15:31 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/registry/regf.c

index 58cc51c20260b830d949b204ee6c8f64fe28c741..89b4327ba35f3981b85dba435efdd4dd580ef55d 100644 (file)
@@ -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;