]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Top off the passwd update
authorKurt Zeilenga <kurt@openldap.org>
Thu, 18 Dec 2003 04:34:26 +0000 (04:34 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 18 Dec 2003 04:34:26 +0000 (04:34 +0000)
include/lutil.h

index 4cba4df7e261e57ebeff3a5f1b0170da4ae81875..d21a2bd61a59f8a7c30dc898f47ba399cd2eea8c 100644 (file)
@@ -1,6 +1,7 @@
 /* $OpenLDAP$ */
-/*
- * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2003 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -26,7 +27,7 @@ LDAP_BEGIN_DECL
 /* Avoid floating point math through extra padding */
 
 #define LUTIL_BASE64_ENCODE_LEN(n)     (((n)+2)/3 * 4)
-#define LUTIL_BASE64_DECODE_LEN(n)     (((n)+3)/4 * 3)
+#define LUTIL_BASE64_DECODE_LEN(n)     ((n)/4*3)
 
 /* ISC Base64 Routines */
 /* base64.c */