From e595ffe96cb65cf6aa002adfc9732746df84d997 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 10 Sep 2002 03:06:48 +0000 Subject: [PATCH] Import decode len fix (ITS#2055) --- include/lutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lutil.h b/include/lutil.h index 4a53306b81..cae38a3430 100644 --- a/include/lutil.h +++ b/include/lutil.h @@ -26,7 +26,7 @@ LDAP_BEGIN_DECL /* Avoid floating point math by through extra padding */ #define LUTIL_BASE64_ENCODE_LEN(n) ((n)/3 * 4 + 4) -#define LUTIL_BASE64_DECODE_LEN(n) ((n)/4 * 3) +#define LUTIL_BASE64_DECODE_LEN(n) (((n)+3)/4 * 3) /* ISC Base64 Routines */ /* base64.c */ -- 2.39.5