aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe_rw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe_rw.cpp')
-rw-r--r--src/pipe_rw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipe_rw.cpp b/src/pipe_rw.cpp
index 85a027e1a..7a7e672fb 100644
--- a/src/pipe_rw.cpp
+++ b/src/pipe_rw.cpp
@@ -48,7 +48,7 @@ void Pipe::write(const MemoryRegion<byte>& input)
*************************************************/
void Pipe::write(const std::string& str)
{
- write((const byte*)str.c_str(), str.size());
+ write((const byte*)str.data(), str.size());
}
/*************************************************