aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_int.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/asn1/asn1_int.cpp')
-rw-r--r--src/asn1/asn1_int.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asn1/asn1_int.cpp b/src/asn1/asn1_int.cpp
index 5e18f3961..75cb1f90c 100644
--- a/src/asn1/asn1_int.cpp
+++ b/src/asn1/asn1_int.cpp
@@ -45,7 +45,7 @@ SecureVector<byte> put_in_sequence(const MemoryRegion<byte>& contents)
*/
std::string to_string(const BER_Object& obj)
{
- return std::string(reinterpret_cast<const char*>(obj.value.begin()),
+ return std::string(reinterpret_cast<const char*>(&obj.value[0]),
obj.value.size());
}