diff options
Diffstat (limited to 'Shell')
-rw-r--r-- | Shell/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Shell/main.cpp b/Shell/main.cpp index 0e74828378..f16b3fed46 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -224,7 +224,7 @@ struct CommandTimer { static bool is_glob(const StringView& s) { for (int i = 0; i < s.length(); i++) { - char c = s.characters()[i]; + char c = s.characters_without_null_termination()[i]; if (c == '*' || c == '?') return true; } @@ -237,7 +237,7 @@ static Vector<StringView> split_path(const StringView &path) ssize_t substart = 0; for (ssize_t i = 0; i < path.length(); i++) { - char ch = path.characters()[i]; + char ch = path.characters_without_null_termination()[i]; if (ch != '/') continue; ssize_t sublen = i - substart; |