about summary refs log tree commit diff
path: root/src/libutil/serialise.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-02-09T17·27+0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-02-09T17·27+0100
commitd5a5a83ad4fb8aba3b334039f567267a0463ee5a (patch)
treea6ce83d3c595fa987afed1c4dbbe18e82cc18322 /src/libutil/serialise.cc
parentec2827f5fc4fc8081daacb197d40d22a5e429df4 (diff)
Use data() instead of c_str() where appropriate
Diffstat (limited to 'src/libutil/serialise.cc')
-rw-r--r--src/libutil/serialise.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc
index c4563ffd1212..9270806a7798 100644
--- a/src/libutil/serialise.cc
+++ b/src/libutil/serialise.cc
@@ -159,7 +159,7 @@ void writeString(const unsigned char * buf, size_t len, Sink & sink)
 
 void writeString(const string & s, Sink & sink)
 {
-    writeString((const unsigned char *) s.c_str(), s.size(), sink);
+    writeString((const unsigned char *) s.data(), s.size(), sink);
 }