diff options
author | David Binderman <dcb314@hotmail.com> | 2012-07-24 15:46:10 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-25 02:42:32 +0200 |
commit | d58aa46c08f69b1b048375b0eea85bdf25f99cda (patch) | |
tree | 2dbe7c29aa541a411da1733b87e56325d3e2bc0b | |
parent | 79ccb96cd35baffc848cd96b20553aa958dd69b0 (diff) | |
download | samba-d58aa46c08f69b1b048375b0eea85bdf25f99cda.tar.gz samba-d58aa46c08f69b1b048375b0eea85bdf25f99cda.tar.bz2 samba-d58aa46c08f69b1b048375b0eea85bdf25f99cda.zip |
Fix bug 9065: source3/registry/regfio.c: bad call to memcpy
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jul 25 02:42:32 CEST 2012 on sn-devel-104
-rw-r--r-- | source3/registry/regfio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c index 9be8ff8fb9..bde18630aa 100644 --- a/source3/registry/regfio.c +++ b/source3/registry/regfio.c @@ -1468,7 +1468,7 @@ static REGF_HBIN* regf_hbin_allocate( REGF_FILE *file, uint32 block_size ) if ( !(hbin = talloc_zero( file->mem_ctx, REGF_HBIN )) ) return NULL; - memcpy( hbin->header, "hbin", sizeof(HBIN_HDR_SIZE) ); + memcpy( hbin->header, "hbin", HBIN_HDR_SIZE); if (sys_fstat(file->fd, &sbuf, false)) { |