From: Gabor Juhos Date: Mon, 17 Dec 2012 12:28:15 +0000 (+0000) Subject: firmware-utils/mkfwimage2: allow to use numbers in partition names X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=7b6e4c17efd8d4a9eea51b018db5924093448fd7;p=project%2Ffirmware-utils.git firmware-utils/mkfwimage2: allow to use numbers in partition names Signed-off-by: Gabor Juhos SVN-Revision: 34729 --- diff --git a/src/mkfwimage2.c b/src/mkfwimage2.c index ee09abb..993c3d4 100644 --- a/src/mkfwimage2.c +++ b/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,