From d58aa46c08f69b1b048375b0eea85bdf25f99cda Mon Sep 17 00:00:00 2001 From: David Binderman Date: Tue, 24 Jul 2012 15:46:10 -0700 Subject: [PATCH] Fix bug 9065: source3/registry/regfio.c: bad call to memcpy Signed-off-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Jul 25 02:42:32 CEST 2012 on sn-devel-104 --- source3/registry/regfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c index 9be8ff8fb95..bde18630aa0 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)) { -- 2.11.4.GIT