summary refs log tree commit diff
path: root/src/libstore/references.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/references.cc')
-rw-r--r--src/libstore/references.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc
index c1f9e3ba77..282b848938 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);