From 1002ed245ecf5946717a03dd13548a54da336959 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Mon, 29 Nov 2021 13:20:40 +0100 Subject: [PATCH] util: right parenthesises for base64 macro So that BASE64_BUFFER_SIZE(3) == 5 instead of 7 --- src/util-crypt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-crypt.h b/src/util-crypt.h index 15e1656726..1748c258e8 100644 --- a/src/util-crypt.h +++ b/src/util-crypt.h @@ -33,7 +33,7 @@ * required output bytes are 4 * ceil(input_len / 3) and an additional byte * for storing the NULL pointer. * */ -#define BASE64_BUFFER_SIZE(x) ((4 * ((x) + 2) / 3) + 1) +#define BASE64_BUFFER_SIZE(x) ((4 * (((x) + 2) / 3)) + 1) typedef enum { SC_SHA_1_OK, -- 2.47.2