From: John Crispin Date: Wed, 23 Dec 2015 14:43:47 +0000 (+0000) Subject: firmware-utils: allow mkfwimage2 to use - in partition names X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16317ceb4f3a421534939cd88010ece19da14a52;p=openwrt%2Fstaging%2Fflorian.git firmware-utils: allow mkfwimage2 to use - in partition names Signed-off-by: Roman Yeryomin SVN-Revision: 47975 --- 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,