From bb8827f2e0766255696733f3decc34854cc3e313 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 13 Feb 2019 10:10:08 +0100 Subject: [PATCH] Fixed output length in -m 101 --- src/modules/module_00101.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/module_00101.c b/src/modules/module_00101.c index 71280e04e..fed76cb9f 100644 --- a/src/modules/module_00101.c +++ b/src/modules/module_00101.c @@ -133,9 +133,7 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE base64_encode (int_to_base64, (const u8 *) tmp, 20, (u8 *) ptr_plain); - const int out_len = 40; - - snprintf (line_buf, line_size, "{SHA}%s", (char *) ptr_plain); + const int out_len = snprintf (line_buf, line_size, "{SHA}%s", (char *) ptr_plain); return out_len; }