summaryrefslogtreecommitdiffstats
path: root/src/md.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:37:25 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-25 14:37:25 +0100
commit2159f9ccabecf6279dc5e8391ee5060d25a479a5 (patch)
tree21a550a3d650928ed1b570566c119e2ee988113e /src/md.c
parent3a7d38ed53b6365c3f9e72ad9e00fe55831756e7 (diff)
Fix md 0.9 uuid copy
Diffstat (limited to 'src/md.c')
-rw-r--r--src/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md.c b/src/md.c
index 1ad91e4..4340471 100644
--- a/src/md.c
+++ b/src/md.c
@@ -228,7 +228,7 @@ int recover_MD(disk_t *disk_car, const struct mdp_superblock_s *sb, partition_t
{
partition->part_size=(uint64_t)(be32(sb->size)<<1)*disk_car->sector_size+MD_RESERVED_BYTES;
memcpy(&partition->part_uuid, &sb->set_uuid0, 4);
- memcpy(&partition->part_uuid+4, &sb->set_uuid1, 3*4);
+ memcpy((char*)(&partition->part_uuid)+4, &sb->set_uuid1, 3*4);
}
else
{