summaryrefslogtreecommitdiff
path: root/util/cbfstool/fmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/fmd.c')
-rw-r--r--util/cbfstool/fmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/fmd.c b/util/cbfstool/fmd.c
index afd87015f8..7a289d7743 100644
--- a/util/cbfstool/fmd.c
+++ b/util/cbfstool/fmd.c
@@ -289,7 +289,7 @@ static void print_with_prefix(const struct flashmap_descriptor *tree,
if (tree->list_len) {
puts(":");
- char child_prefix[strlen(pre) + 1];
+ char child_prefix[strlen(pre) + 2];
strcpy(child_prefix, pre);
strcat(child_prefix, "\t");
fmd_foreach_child(each, tree)