aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-30 15:24:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-30 15:24:09 +0000
commit422333ad6c5dfa06b780fbcc379ee1d7ae950fe6 (patch)
treef8b5c532a4cfbe967f49900e5939e85ef9088670
parent7de2869db982a34456318d78a815f74fe1c4a4e3 (diff)
downloadpaludis-422333ad6c5dfa06b780fbcc379ee1d7ae950fe6.tar.gz
paludis-422333ad6c5dfa06b780fbcc379ee1d7ae950fe6.tar.xz
Uh, really fix strip this time
-rw-r--r--paludis/strip.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/strip.cc b/paludis/strip.cc
index 92fb24c..7a7fe35 100644
--- a/paludis/strip.cc
+++ b/paludis/strip.cc
@@ -59,7 +59,7 @@ namespace paludis
{
try
{
- if (suffix.length() < s.length())
+ if (suffix.length() >= s.length())
return s;
else if (0 == s.compare(s.length() - suffix.length(), suffix.length(), suffix))
return s.substr(0, s.length() - suffix.length());