summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-12-17 12:28:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-12-17 12:28:15 +0000
commit113b6b96c18f9b63770d6d8575b2daefead397a9 (patch)
treee54917b157a46f227fa013e9e84b11c986fc4c5a /tools
parentabbd18776e9c45eec2e4aa0baa2859873340760e (diff)
downloadmtk-20170518-113b6b96c18f9b63770d6d8575b2daefead397a9.zip
mtk-20170518-113b6b96c18f9b63770d6d8575b2daefead397a9.tar.gz
mtk-20170518-113b6b96c18f9b63770d6d8575b2daefead397a9.tar.bz2
firmware-utils/mkfwimage2: allow to use numbers in partition names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34729
Diffstat (limited to 'tools')
-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 ee09abb..993c3d4 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[a-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,