aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/sha1.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
commita8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch)
tree9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /modules/benchmark/sha1.c
parent25c366a8074af72c0811a960b947302bed036669 (diff)
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'modules/benchmark/sha1.c')
-rw-r--r--modules/benchmark/sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/benchmark/sha1.c b/modules/benchmark/sha1.c
index 8cbf0f6a..1ea0b1c1 100644
--- a/modules/benchmark/sha1.c
+++ b/modules/benchmark/sha1.c
@@ -234,9 +234,9 @@ void SHA1Final(guchar digest[20], SHA1_CTX * context)
/* Wipe variables */
i = j = 0;
memset(context->buffer, 0, 64);
- memset(context->state, 0, 20);
- memset(context->count, 0, 8);
- memset(&finalcount, 0, 8);
+ memset(context->state, 0, 20*sizeof(guint32));
+ memset(context->count, 0, 2*sizeof(guint32));
+ memset(&finalcount, 0, sizeof(finalcount));
#ifdef SHA1HANDSOFF /* make SHA1Transform overwrite it's own static vars */
SHA1Transform(context->state, context->buffer);
#endif