projects
/
platform
/
upstream
/
btrfs-progs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Btrfs-progs: fix wrong leaf when checking the trees relationship
[platform/upstream/btrfs-progs.git]
/
btrfs-list.c
diff --git
a/btrfs-list.c
b/btrfs-list.c
index
693d241
..
c53d016
100644
(file)
--- a/
btrfs-list.c
+++ b/
btrfs-list.c
@@
-184,7
+184,7
@@
static int add_root(struct root_lookup *root_lookup,
ri->ref_tree = ref_tree;
strncpy(ri->name, name, name_len);
if (name_len > 0)
- ri->name[name_len
-1
] = 0;
+ ri->name[name_len] = 0;
ret = tree_insert(&root_lookup->root, root_id, ref_tree, &ri->rb_node);
if (ret) {