diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-17 12:28:15 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-17 12:28:15 +0000 |
commit | 251f32d9cacd0e686d9346fc3d21ad77ea732bd5 (patch) | |
tree | 3254fd8ab75a0511022229608169bc6d1a8953d0 /tools | |
parent | 58c3399ffccfd2f8df85170df9622119245ff85d (diff) | |
download | upstream-251f32d9cacd0e686d9346fc3d21ad77ea732bd5.tar.gz upstream-251f32d9cacd0e686d9346fc3d21ad77ea732bd5.tar.bz2 upstream-251f32d9cacd0e686d9346fc3d21ad77ea732bd5.zip |
firmware-utils/mkfwimage2: allow to use numbers in partition names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34729 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/firmware-utils/src/mkfwimage2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkfwimage2.c b/tools/firmware-utils/src/mkfwimage2.c index ee09abba1a..993c3d44ed 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, |