--- src/eixTk/compare.h.orig 2008-09-20 22:19:18.000000000 +0200 +++ src/eixTk/compare.h 2008-09-20 22:18:03.000000000 +0200 @@ -41,7 +41,8 @@ if (size_result) return size_result; // both strings have the same length, do string comparison - return left.compare(lstart, std::string::npos, right, rstart, std::string::npos); + return left.compare(lstart == std::string::npos ? 0 : lstart, std::string::npos, right, + rstart == std::string::npos ? 0 : rstart, std::string::npos); } }