]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix bug 9065: source3/registry/regfio.c: bad call to memcpy
authorDavid Binderman <dcb314@hotmail.com>
Tue, 24 Jul 2012 22:46:10 +0000 (15:46 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2012 05:21:49 +0000 (07:21 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2575cd4f189d28e7d4def211a89348ab7e515e83)

source3/registry/regfio.c

index bd5380787c6b14e52d92b556300156f1317b9a7e..c56cfbdb3b6b72f583fe91eef28e90bdbb1a2ea6 100644 (file)
@@ -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)) {