]> git.sur5r.net Git - openldap/commitdiff
Import decode len fix (ITS#2055)
authorKurt Zeilenga <kurt@openldap.org>
Tue, 10 Sep 2002 03:06:48 +0000 (03:06 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 10 Sep 2002 03:06:48 +0000 (03:06 +0000)
include/lutil.h

index 4a53306b814cd3a12144a95572c70bdf4eb68324..cae38a34303ee59edfc23a69779e59413602b406 100644 (file)
@@ -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 */