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/gc.cc | |
parent | ec2827f5fc4fc8081daacb197d40d22a5e429df4 (diff) |
Use data() instead of c_str() where appropriate
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r-- | src/libstore/gc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 14c8ba0bfe90..c2e999a6e6a7 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -196,7 +196,7 @@ void LocalStore::addTempRoot(const Path & path) lockFile(fdTempRoots, ltWrite, true); string s = path + '\0'; - writeFull(fdTempRoots, (const unsigned char *) s.c_str(), s.size()); + writeFull(fdTempRoots, (const unsigned char *) s.data(), s.size()); /* Downgrade to a read lock. */ debug(format("downgrading to read lock on `%1%'") % fnTempRoots); |