diff options
Diffstat (limited to 'src/libstore/references.cc')
-rw-r--r-- | src/libstore/references.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc index c1f9e3ba7711..282b848938b3 100644 --- a/src/libstore/references.cc +++ b/src/libstore/references.cc @@ -69,7 +69,7 @@ void RefScanSink::operator () (const unsigned char * data, size_t len) fragment, so search in the concatenation of the tail of the previous fragment and the start of the current fragment. */ string s = tail + string((const char *) data, len > refLength ? refLength : len); - search((const unsigned char *) s.c_str(), s.size(), hashes, seen); + search((const unsigned char *) s.data(), s.size(), hashes, seen); search(data, len, hashes, seen); |