firmware-utils/mkfwimage2: allow to use numbers in partition names
[openwrt/openwrt.git] / tools / firmware-utils / src / mkfwimage2.c
index ee09abba1aec34124eaf0cf76a25d12402f33cbb..993c3d44ed9e81fe49b4a09629387851b57477ea 100644 (file)
@@ -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,