summaryrefslogtreecommitdiff
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-12-23 14:43:47 +0000
committerJohn Crispin <john@openwrt.org>2015-12-23 14:43:47 +0000
commit16317ceb4f3a421534939cd88010ece19da14a52 (patch)
tree533e6e43035f0836b533ef3d7212b60b7c7573a1 /tools/firmware-utils
parenta621edbb0aa345373c9ac292763843683d002ba9 (diff)
downloadmtk-20170518-16317ceb4f3a421534939cd88010ece19da14a52.zip
mtk-20170518-16317ceb4f3a421534939cd88010ece19da14a52.tar.gz
mtk-20170518-16317ceb4f3a421534939cd88010ece19da14a52.tar.bz2
firmware-utils: allow mkfwimage2 to use - in partition names
Signed-off-by: Roman Yeryomin <roman@advem.lv> SVN-Revision: 47975
Diffstat (limited to 'tools/firmware-utils')
-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 993c3d4..146b2ad 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,