aboutsummaryrefslogtreecommitdiffstats
path: root/src/base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 3afa9e6b1..fb5e219c9 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -150,7 +150,7 @@ void BufferedComputation::update(const MemoryRegion<byte>& in)
*************************************************/
void BufferedComputation::update(const std::string& str)
{
- update((const byte*)str.c_str(), str.size());
+ update((const byte*)str.data(), str.size());
}
/*************************************************