summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-05-13 03:27:49 +0000
committerBruce Momjian <bruce@momjian.us>2001-05-13 03:27:49 +0000
commit02a062c121d1ed6e2addd8cafec85a974b165d79 (patch)
treea5a19ab105fb4679bc00917ee4598535013b4d07
parente6903c49a541a181bb44d8712b6fee364fd2c1c3 (diff)
update.
-rw-r--r--contrib/pgcrypto/encode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgcrypto/encode.c b/contrib/pgcrypto/encode.c
index b6db217c836..cd8568d07f0 100644
--- a/contrib/pgcrypto/encode.c
+++ b/contrib/pgcrypto/encode.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: encode.c,v 1.4 2001/03/22 03:59:10 momjian Exp $
+ * $Id: encode.c,v 1.4.2.1 2001/05/13 03:27:49 momjian Exp $
*/
#include "postgres.h"
@@ -349,7 +349,7 @@ hex_dec_len(uint srclen)
uint
b64_enc_len(uint srclen)
{
- return srclen + (srclen / 3) + (srclen / (76 / 2));
+ return srclen + (srclen + 2 / 3) + (srclen / (76 / 2)) + 2;
}
uint