mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 12:36:17 +02:00
Fix myloader partition table parser
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6757 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
191bce30de
commit
c53c4bc223
@ -115,14 +115,14 @@ int parse_myloader_partitions(struct mtd_info *master,
|
||||
mtd_part = mtd_parts;
|
||||
names = (char *)&mtd_parts[num_parts];
|
||||
|
||||
strcpy(NAME_MYLOADER, names);
|
||||
strncpy(names, NAME_MYLOADER, NAME_LEN_MAX-1);
|
||||
mtd_part->name = names;
|
||||
mtd_part->offset = 0;
|
||||
mtd_part->size = blocklen;
|
||||
mtd_part++;
|
||||
names += NAME_LEN_MAX;
|
||||
|
||||
strcpy(NAME_PARTITION_TABLE, names);
|
||||
strncpy(names, NAME_PARTITION_TABLE, NAME_LEN_MAX-1);
|
||||
mtd_part->name = names;
|
||||
mtd_part->offset = blocklen;
|
||||
mtd_part->size = blocklen;
|
||||
|
Loading…
Reference in New Issue
Block a user