summaryrefslogtreecommitdiff
path: root/mdc.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-03-13 13:26:41 +0000
committerweidai <weidai11@users.noreply.github.com>2006-03-13 13:26:41 +0000
commit922fdeb1508e89b25d684378a269e319c927d91d (patch)
treef30468f446dfdde7bc27bc6c82de67f227721b05 /mdc.h
parent80a9a45ad09512f6d2dd4f806ff774d79fcda5df (diff)
downloadcryptopp-git-922fdeb1508e89b25d684378a269e319c927d91d.tar.gz
fix MSVC 2005 warnings
Diffstat (limited to 'mdc.h')
-rw-r--r--mdc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdc.h b/mdc.h
index a9bb430c..7091fe8b 100644
--- a/mdc.h
+++ b/mdc.h
@@ -32,7 +32,7 @@ class MDC : public MDC_Info<T>
{
assert(direction == ENCRYPTION);
this->AssertValidKeyLength(length);
- memcpy(Key(), userKey, this->KEYLENGTH);
+ memcpy_s(m_key, m_key.size(), userKey, this->KEYLENGTH);
T::CorrectEndianess(Key(), Key(), this->KEYLENGTH);
}