aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert/x509/x509_obj.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cert/x509/x509_obj.cpp')
-rw-r--r--src/lib/cert/x509/x509_obj.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cert/x509/x509_obj.cpp b/src/lib/cert/x509/x509_obj.cpp
index 71449098e..0f5999b5b 100644
--- a/src/lib/cert/x509/x509_obj.cpp
+++ b/src/lib/cert/x509/x509_obj.cpp
@@ -39,7 +39,7 @@ X509_Object::X509_Object(const std::string& file, const std::string& labels)
*/
X509_Object::X509_Object(const std::vector<byte>& vec, const std::string& labels)
{
- DataSource_Memory stream(&vec[0], vec.size());
+ DataSource_Memory stream(vec.data(), vec.size());
init(stream, labels);
}