diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-01 10:02:19 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-01 10:02:19 +0000 |
| commit | 94c449ca42bd29de2c2fd137945550fe110fcd17 (patch) | |
| tree | 0de53762cde9c1dfe47711fd3285ccabb15165bb /src | |
| parent | e91283fd2e449e17679bb0a911ea03f94cd1d759 (diff) | |
fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.cc b/src/path.cc index 74e8a37..9e4a515 100644 --- a/src/path.cc +++ b/src/path.cc @@ -29,7 +29,7 @@ string path_unifier(const string &s, bool is_cmd) } // single word, use path - if (is_cmd && (s.find("/") == s.size())) + if (is_cmd && (s.find("/") == string::npos)) { string path = getenv("PATH"); size_t i = 0, j = 0, l = path.size(); |
