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/remote-store.cc | |
parent | ec2827f5fc4fc8081daacb197d40d22a5e429df4 (diff) |
Use data() instead of c_str() where appropriate
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r-- | src/libstore/remote-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index 6e9921ede79f..c77a12870513 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -509,7 +509,7 @@ void RemoteStore::processStderr(Sink * sink, Source * source) if (msg == STDERR_WRITE) { string s = readString(from); if (!sink) throw Error("no sink"); - (*sink)((const unsigned char *) s.c_str(), s.size()); + (*sink)((const unsigned char *) s.data(), s.size()); } else if (msg == STDERR_READ) { if (!source) throw Error("no source"); @@ -521,7 +521,7 @@ void RemoteStore::processStderr(Sink * sink, Source * source) } else { string s = readString(from); - writeToStderr((const unsigned char *) s.c_str(), s.size()); + writeToStderr((const unsigned char *) s.data(), s.size()); } } if (msg == STDERR_ERROR) { |