diff options
-rw-r--r-- | algparam.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ public: : m_deepCopy(false), m_data(NULLPTR), m_size(0)
{
CRYPTOPP_COMPILE_ASSERT(sizeof(typename T::value_type) == 1);
- Assign(reinterpret_cast<const byte *>(string.data()), string.size(), deepCopy);
+ Assign(reinterpret_cast<const byte *>(&string[0]), string.size(), deepCopy);
}
/// \brief Assign contents from a memory buffer
|