aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-12-23 14:43:47 +0000
committerJohn Crispin <blogic@openwrt.org>2015-12-23 14:43:47 +0000
commit14c689b70ad6aa7cd6c59b33087a599185a1ea0d (patch)
tree627320ef5b6ed98fbeeec5fbcf5453abc7ddd98b
parentfdd97fdf46a97645cd3406086a5833d34c4b7745 (diff)
downloadmaster-187ad058-14c689b70ad6aa7cd6c59b33087a599185a1ea0d.tar.gz
master-187ad058-14c689b70ad6aa7cd6c59b33087a599185a1ea0d.tar.bz2
master-187ad058-14c689b70ad6aa7cd6c59b33087a599185a1ea0d.zip
firmware-utils: allow mkfwimage2 to use - in partition names
Signed-off-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47975 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--tools/firmware-utils/src/mkfwimage2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkfwimage2.c b/tools/firmware-utils/src/mkfwimage2.c
index 993c3d44ed..146b2ad55d 100644
--- a/tools/firmware-utils/src/mkfwimage2.c
+++ b/tools/firmware-utils/src/mkfwimage2.c
@@ -212,7 +212,7 @@ static int image_layout_add_partition(const char *part_desc)
}
d = &im.parts[im.part_count];
- t = sscanf(part_desc, "%15[0-9a-zA-Z]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%256s",
+ t = sscanf(part_desc, "%15[-0-9a-zA-Z]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%256s",
d->partition_name,
offset,
length,