aboutsummaryrefslogtreecommitdiffstats
path: root/src/der_enc.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-07-21 19:35:10 +0000
committerlloyd <[email protected]>2007-07-21 19:35:10 +0000
commitad3c9c5a74be828440385f31c4b99affc3f33654 (patch)
tree77a0d026a9d79469fb0f3c26a430d165061ca9ad /src/der_enc.cpp
parent5ea451fc8db248c76fe68db87b9c76ffad019655 (diff)
Use std::string::data() instead of std::string::c_str() in cases where we
just want access to the underlying data representation but don't care if the return value is NULL terminated or not.
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);
}