diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-03-29 22:19:26 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-03-29 22:19:26 +0000 |
commit | 33edf0ebfd715dfe1a54eec708c2a608e19aab59 (patch) | |
tree | 65d232f30c9c42470b0f708cbaf2cf2a131beabf /target | |
parent | dfda819fb15034224c4fc869e3441d8aaa1605ee (diff) | |
download | master-187ad058-33edf0ebfd715dfe1a54eec708c2a608e19aab59.tar.gz master-187ad058-33edf0ebfd715dfe1a54eec708c2a608e19aab59.tar.bz2 master-187ad058-33edf0ebfd715dfe1a54eec708c2a608e19aab59.zip |
Fix myloader partition table parser
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6757 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/adm5120-2.6/files/drivers/mtd/myloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/mtd/myloader.c b/target/linux/adm5120-2.6/files/drivers/mtd/myloader.c index 023ae5c61f..ee916d7800 100644 --- a/target/linux/adm5120-2.6/files/drivers/mtd/myloader.c +++ b/target/linux/adm5120-2.6/files/drivers/mtd/myloader.c @@ -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; |