diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-02-09T17·27+0100 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-02-09T17·27+0100 |
commit | d5a5a83ad4fb8aba3b334039f567267a0463ee5a (patch) | |
tree | a6ce83d3c595fa987afed1c4dbbe18e82cc18322 /src/libstore/references.cc | |
parent | ec2827f5fc4fc8081daacb197d40d22a5e429df4 (diff) |
Use data() instead of c_str() where appropriate
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); |