aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-10-15 10:40:27 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-10-15 10:40:27 +0000
commit8f51d97de6b38b8bc8a9b129baecf4bebd183c7b (patch)
treefb6da43747c86d2ae73f939f3b8eec93724dbd1e
parenta56cc074cf692280c8cac7b170fe0013cd476591 (diff)
downloadpaludis-8f51d97de6b38b8bc8a9b129baecf4bebd183c7b.tar.gz
paludis-8f51d97de6b38b8bc8a9b129baecf4bebd183c7b.tar.xz
Fix string::compare usage.
-rw-r--r--src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc b/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc
index c77495b..232ff8f 100644
--- a/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc
+++ b/src/clients/reconcilio/broken_linkage_finder/broken_linkage_finder.cc
@@ -112,7 +112,7 @@ namespace
bool operator() (const FSEntry & parent)
{
std::string child_str(stringify(_child)), parent_str(stringify(parent));
- return 0 == parent_str.compare(0, parent_str.length(), child_str) &&
+ return 0 == child_str.compare(0, parent_str.length(), parent_str) &&
(parent_str.length() == child_str.length() || '/' == child_str[parent_str.length()]);
}
};