diff --git a/src/shell_manager.cc b/src/shell_manager.cc index f7857dab..f6623db3 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -25,7 +25,7 @@ ShellManager::ShellManager() // Get a guaranteed to be POSIX shell binary { auto size = confstr(_CS_PATH, 0, 0); - String path; path.resize(size, 0); + String path; path.resize(size-1, 0); confstr(_CS_PATH, path.data(), size); for (auto dir : StringView{path} | split(':')) {