git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ccb96
)
Fix bug 9065: source3/registry/regfio.c: bad call to memcpy
author
David Binderman
<dcb314@hotmail.com>
Tue, 24 Jul 2012 22:46:10 +0000
(15:46 -0700)
committer
Jeremy Allison
<jra@samba.org>
Wed, 25 Jul 2012 00:42:32 +0000
(
02:42
+0200)
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
source3/registry/regfio.c
patch
|
blob
|
history
diff --git
a/source3/registry/regfio.c
b/source3/registry/regfio.c
index 9be8ff8fb9520a689db421adc50df325ceb24c86..bde18630aa02b9c265e001d16bef12f91e429a7d 100644
(file)
--- 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)) {