aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/db.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-12-25 11:29:12 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-12-25 11:29:12 +0000
commit0f8d3c871bfad0f83f4469c26aaa37927a525fe0 (patch)
tree5cc92544a521fdf3fff03cb00fbcc2c56590f531 /src/libstore/db.cc
parent52d20ef124bafc51d982b34d127e7d9524d1a409 (diff)
* More GCC 2.95 compatibility.
Diffstat (limited to 'src/libstore/db.cc')
-rw-r--r--src/libstore/db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/db.cc b/src/libstore/db.cc
index 7ded82ef1..86509697a 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;