|
@@ -111,8 +111,8 @@
|
|
|
+ }
|
|
+ }
|
|
|
+
|
|
+
|
|
|
+ memcpy(dpart, part, sizeof(*part));
|
|
+ memcpy(dpart, part, sizeof(*part));
|
|
|
|
|
++ strcpy((char *)&dpart[1], ROOTFS_SPLIT_NAME);
|
|
|
+ dpart->name = (unsigned char *)&dpart[1];
|
|
+ dpart->name = (unsigned char *)&dpart[1];
|
|
|
-+ strcpy(dpart->name, ROOTFS_SPLIT_NAME);
|
|
|
|
|
+
|
|
+
|
|
|
+ dpart->size = rpart->size - (split_offset - spart->offset);
|
|
+ dpart->size = rpart->size - (split_offset - spart->offset);
|
|
|
+ dpart->offset = split_offset;
|
|
+ dpart->offset = split_offset;
|
|
@@ -301,7 +301,8 @@
|
|
|
|
|
|
|
|
+struct mtd_partition;
|
|
+struct mtd_partition;
|
|
|
struct mtd_partition {
|
|
struct mtd_partition {
|
|
|
- char *name; /* identifier string */
|
|
|
|
|
|
|
+- char *name; /* identifier string */
|
|
|
|
|
++ const char *name; /* identifier string */
|
|
|
uint64_t size; /* partition size */
|
|
uint64_t size; /* partition size */
|
|
|
uint64_t offset; /* offset within the master MTD space */
|
|
uint64_t offset; /* offset within the master MTD space */
|
|
|
uint32_t mask_flags; /* master MTD flags to mask out for this partition */
|
|
uint32_t mask_flags; /* master MTD flags to mask out for this partition */
|