--- include/lutil.h 2002/08/31 08:48:02 1.41 +++ include/lutil.h 2002/09/10 00:55:05 1.42 @@ -1,4 +1,4 @@ -/* $OpenLDAP: pkg/ldap/include/lutil.h,v 1.40 2002/08/24 03:47:26 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/include/lutil.h,v 1.41 2002/08/31 08:48:02 ando Exp $ */ /* * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. @@ -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 */