From dda0cc2d4b7433a9907dedf0b3933c7b59bec967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Go=C5=82awski?= Date: Wed, 11 Sep 2024 10:53:22 +0200 Subject: [PATCH] Fix hash encoding in WinZip format --- src/modules/module_13600.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module_13600.c b/src/modules/module_13600.c index f927d5761..0000f26a1 100644 --- a/src/modules/module_13600.c +++ b/src/modules/module_13600.c @@ -383,7 +383,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE snprintf (auth_tmp + j, 3, "%02x", ptr[i]); } - const int line_len = snprintf (line_buf, line_size, "%s*%u*%u*%u*%s*%x*%x*%s*%s*%s", + const int line_len = snprintf (line_buf, line_size, "%s*%u*%u*%u*%s*%04x*%x*%s*%s*%s", SIGNATURE_ZIP2_START, zip2->type, zip2->mode,