Browse Source

Fixed a write to array index -1 with demo/demo -tree

release-1.5.4.branch
Thomas Schmitt 7 years ago
parent
commit
b41e36365d
  1. 3
      demo/demo.c

3
demo/demo.c

@ -95,7 +95,8 @@ tree_print_dir(IsoDir *dir, int level)
sp[i+1] = ' ';
}
sp[level * 2-1] = '-';
if (level > 0)
sp[level * 2 - 1] = '-';
sp[level * 2] = '\0';
iso_dir_get_children(dir, &iter);

Loading…
Cancel
Save