From: Philippe Antoine Date: Mon, 29 Nov 2021 12:20:40 +0000 (+0100) Subject: util: right parenthesises for base64 macro X-Git-Tag: suricata-5.0.9~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1002ed245ecf5946717a03dd13548a54da336959;p=thirdparty%2Fsuricata.git util: right parenthesises for base64 macro So that BASE64_BUFFER_SIZE(3) == 5 instead of 7 --- 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,