diff --git a/src/Nazara/Core/Hash/SHA/Internal.cpp b/src/Nazara/Core/Hash/SHA/Internal.cpp index 6017b7bc2..62f52eaaa 100644 --- a/src/Nazara/Core/Hash/SHA/Internal.cpp +++ b/src/Nazara/Core/Hash/SHA/Internal.cpp @@ -1032,7 +1032,7 @@ void SHA512_End(SHA_CTX* context, nzUInt8* digest) } /* Zero out state data */ - std::memset(context, 0, sizeof(context)); + std::memset(context, 0, sizeof(SHA_CTX)); } @@ -1072,5 +1072,5 @@ void SHA384_End(SHA_CTX* context, nzUInt8* digest) } /* Zero out state data */ - std::memset(context, 0, sizeof(context)); + std::memset(context, 0, sizeof(SHA_CTX)); }