mufs: fix off by one in comparison in mufs_extend_tree()

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent ba12823d8b
commit 2401b024a9
  1. 2
      source/fs/mufs/tree.c

@ -100,7 +100,7 @@ int mufs_extend_tree(struct mufs *fs, struct mufs_tree *tree, uint8_t depth)
{
uint32_t root;
for (; tree->depth < depth; ++tree->depth) {
for (; tree->depth <= depth; ++tree->depth) {
if (mufs_alloc_block(fs, &root) < 0)
return -1;

Loading…
Cancel
Save