projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a621edb
)
firmware-utils: allow mkfwimage2 to use - in partition names
author
John Crispin
<john@openwrt.org>
Wed, 23 Dec 2015 14:43:47 +0000
(14:43 +0000)
committer
John Crispin
<john@openwrt.org>
Wed, 23 Dec 2015 14:43:47 +0000
(14:43 +0000)
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 47975
tools/firmware-utils/src/mkfwimage2.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/mkfwimage2.c
b/tools/firmware-utils/src/mkfwimage2.c
index 993c3d44ed9e81fe49b4a09629387851b57477ea..146b2ad55d7a8a58b61dbcdc3034ff5449350ff3 100644
(file)
--- 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,