fix: fix underflow in tabcompletion module
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
bool is_executable(const char* path) {
|
||||
size_t len = montauk::slen(path);
|
||||
|
||||
if (len < 4) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (path[len - 1] == 'f' &&
|
||||
path[len - 2] == 'l' &&
|
||||
path[len - 3] == 'e' &&
|
||||
|
||||
Reference in New Issue
Block a user