From: Kurt Zeilenga Date: Tue, 10 Sep 2002 03:06:48 +0000 (+0000) Subject: Import decode len fix (ITS#2055) X-Git-Tag: OPENLDAP_REL_ENG_2_1_5~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e595ffe96cb65cf6aa002adfc9732746df84d997;p=openldap Import decode len fix (ITS#2055) --- 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 */