From 949b61a6bb2aa58adea844ac0dfde33bbfa24cd5 Mon Sep 17 00:00:00 2001 From: Sein Coray Date: Tue, 31 Mar 2020 17:37:46 +0200 Subject: [PATCH] Fix constant separator when printing IPMI hashes --- src/modules/module_07300.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/module_07300.c b/src/modules/module_07300.c index 85d006bc5..720d41fca 100644 --- a/src/modules/module_07300.c +++ b/src/modules/module_07300.c @@ -147,7 +147,8 @@ int module_hash_encode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE line_len += snprintf (line_buf + line_len, line_size - line_len, "%02x", ptr[i ^ 3]); // the ^ 3 index converts LE -> BE } - line_len += snprintf (line_buf + line_len, line_size - line_len, ":%08x%08x%08x%08x%08x", + line_len += snprintf (line_buf + line_len, line_size - line_len, "%c%08x%08x%08x%08x%08x", + hashconfig->separator, digest[0], digest[1], digest[2],