aboutsummaryrefslogtreecommitdiffstats
path: root/src/der_enc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/der_enc.cpp')
-rw-r--r--src/der_enc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/der_enc.cpp b/src/der_enc.cpp
index 9973fd5cb..1a4bb1b48 100644
--- a/src/der_enc.cpp
+++ b/src/der_enc.cpp
@@ -373,7 +373,7 @@ DER_Encoder& DER_Encoder::add_object(ASN1_Tag type_tag, ASN1_Tag class_tag,
DER_Encoder& DER_Encoder::add_object(ASN1_Tag type_tag, ASN1_Tag class_tag,
const std::string& rep_str)
{
- const byte* rep = (const byte*)rep_str.c_str();
+ const byte* rep = (const byte*)rep_str.data();
const u32bit rep_len = rep_str.size();
return add_object(type_tag, class_tag, rep, rep_len);
}