- p1 = &p.partitions[i];
- p2 = &fw_partitions[i];
- p1->flags = HOST_TO_LE16(p2->flags);
- p1->type = HOST_TO_LE16(PARTITION_TYPE_USED);
- p1->addr = HOST_TO_LE32(p2->addr);
- p1->size = HOST_TO_LE32(p2->size);
- p1->param = HOST_TO_LE32(p2->param);
+ struct mylo_partition *mp;
+ struct fw_part *fp;
+
+ mp = &p.partitions[i];
+ fp = &fw_parts[i];
+ mp->flags = HOST_TO_LE16(fp->mylo.flags);
+ mp->type = HOST_TO_LE16(PARTITION_TYPE_USED);
+ mp->addr = HOST_TO_LE32(fp->mylo.addr);
+ mp->size = HOST_TO_LE32(fp->mylo.size);
+ mp->param = HOST_TO_LE32(fp->mylo.param);
+
+ memcpy(part_names[i], fp->name, PART_NAME_LEN);