aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/fuzzy_finder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/fuzzy_finder.cc b/paludis/fuzzy_finder.cc
index 1e7480ba6..085e2b62e 100644
--- a/paludis/fuzzy_finder.cc
+++ b/paludis/fuzzy_finder.cc
@@ -97,7 +97,7 @@ namespace
for (QualifiedPackageNameSet::ConstIterator p(pkgs->begin()),
p_end(pkgs->end()); p_end != p; ++p)
- if (std::string::npos != stringify(p->package()).find(_package) || (
+ if (((_package.length() >= 3) && (std::string::npos != stringify(p->package()).find(_package))) || (
tolower(p->package().value()[0]) == _first_char &&
_distance_calculator.distance_with(tolower_0_cost(p->package().value())) <= _threshold))
result->insert(*p);