From a8ccc2aa89c78108566c67b9e853797ea451f9c8 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Fri, 24 May 2024 10:20:25 +0200 Subject: FIX GCC Warnings, added more checking to gcc flags --- modules/benchmark/sha1.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/benchmark/sha1.c') 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 -- cgit v1.2.3