mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
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
This commit is contained in:
committed by
Jeremy Allison
parent
79ccb96cd3
commit
d58aa46c08
@ -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)) {
|
||||
|
Reference in New Issue
Block a user