summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-08-30 15:27:05 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-03 15:31:37 +0200
commit90d82870b0fb0bc82b6a5a7f7619c0876db97113 (patch)
treed4d21ec629d65e23acfde0fa26035daa0aae6e10
parentb3d2345bd1b963f30d08067275b51bd7eaa9e1a9 (diff)
downloadsamba-90d82870b0fb0bc82b6a5a7f7619c0876db97113.tar.gz
samba-90d82870b0fb0bc82b6a5a7f7619c0876db97113.tar.bz2
samba-90d82870b0fb0bc82b6a5a7f7619c0876db97113.zip
5 uint32_t's should be set, not 5 bytes.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
-rw-r--r--source4/lib/registry/regf.c2
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;