summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/sys_string_conversions_mac.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/sys_string_conversions_mac.cc b/base/sys_string_conversions_mac.cc
index 6614fa0..a719245 100644
--- a/base/sys_string_conversions_mac.cc
+++ b/base/sys_string_conversions_mac.cc
@@ -103,7 +103,7 @@ static OutStringType STLStringToSTLStringWithEncodingsT(
scoped_cftyperef<CFStringRef> cfstring(
CFStringCreateWithBytesNoCopy(NULL,
- reinterpret_cast<const UInt8*>(in.c_str()),
+ reinterpret_cast<const UInt8*>(in.data()),
in_length *
sizeof(typename InStringType::value_type),
in_encoding,