diff options
Diffstat (limited to 'src/cms')
-rw-r--r-- | src/cms/cms_dec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cms/cms_dec.cpp b/src/cms/cms_dec.cpp index fdb9a4a54..c86e1d0ae 100644 --- a/src/cms/cms_dec.cpp +++ b/src/cms/cms_dec.cpp @@ -86,7 +86,7 @@ std::string CMS_Decoder::get_data() const { if(layer_type() != DATA) throw Invalid_State("CMS: Cannot retrieve data from non-DATA layer"); - return std::string((const char*)data.begin(), data.size()); + return std::string((const char*)&data[0], data.size()); } /* |