diff options
author | lloyd <[email protected]> | 2010-10-29 15:15:30 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-29 15:15:30 +0000 |
commit | 66b163323d39ac5c0be30fd0b1c0fd91b64a55f3 (patch) | |
tree | e745b4824105f600ec5452e591a112229bc01478 /src/cms | |
parent | 89a2e78d2ff2f0266825708a0294b13a4c370a29 (diff) |
Make MemoryRegion::set protected, change all callers
Diffstat (limited to 'src/cms')
-rw-r--r-- | src/cms/cms_enc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cms/cms_enc.cpp b/src/cms/cms_enc.cpp index 1cc2064ac..cd739ef08 100644 --- a/src/cms/cms_enc.cpp +++ b/src/cms/cms_enc.cpp @@ -20,7 +20,8 @@ void CMS_Encoder::set_data(const byte buf[], size_t length) if(!data.empty()) throw Invalid_State("Cannot call CMS_Encoder::set_data here"); - data.set(buf, length); + data.resize(length); + copy_mem(&data[0], buf, length); type = "CMS.DataContent"; } |