summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--algparam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/algparam.h b/algparam.h
index 40c5f46e..1b125f02 100644
--- a/algparam.h
+++ b/algparam.h
@@ -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