mtree should use getcwd() instead of getwd(). getcwd() is safer, because it includes checks for the length of the buffer it uses.
mtree should use getcwd() instead of getwd(). getcwd() is safer, because it includes checks for the length of the buffer it uses.