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; }