From d1d7ee3a9ca8639e752707133b090b93e45894be 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 (cherry picked from commit 2575cd4f189d28e7d4def211a89348ab7e515e83) --- 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 bd53807..c56cfbd 100644 --- a/source3/registry/regfio.c +++ b/source3/registry/regfio.c @@ -1467,7 +1467,7 @@ static REGF_HBIN* regf_hbin_allocate( REGF_FILE *file, uint32 block_size ) if ( !(hbin = TALLOC_ZERO_P( 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)) { -- 1.7.7.3