From 0f8d3c871bfad0f83f4469c26aaa37927a525fe0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 25 Dec 2005 11:29:12 +0000 Subject: * More GCC 2.95 compatibility. --- src/libstore/db.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libstore/db.cc b/src/libstore/db.cc index 7ded82ef1fe8..86509697a3c4 100644 --- a/src/libstore/db.cc +++ b/src/libstore/db.cc @@ -451,7 +451,7 @@ void Database::enumTable(const Transaction & txn, TableId table, checkInterrupt(); string data((char *) kt.get_data(), kt.get_size()); if (!keyPrefix.empty() && - data.compare(0, keyPrefix.size(), keyPrefix) != 0) + string(data, 0, keyPrefix.size()) != keyPrefix) break; keys.push_back(data); flags = DB_NEXT; -- cgit 1.4.1