diff options
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(); |
