From: Kurt Zeilenga Date: Mon, 14 Dec 1998 04:21:04 +0000 (+0000) Subject: Make sure that four characters, rather than only the first three, X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~939 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c65938abe093e6b6030391e78e0f05cb2b980e48;p=openldap Make sure that four characters, rather than only the first three, are being analysed in the transaltion to base64. From: Lucio de Re --- diff --git a/libraries/libldif/line64.c b/libraries/libldif/line64.c index 9c91a41530..d77765167b 100644 --- a/libraries/libldif/line64.c +++ b/libraries/libldif/line64.c @@ -111,7 +111,7 @@ str_parse_line( stop = strchr( s, '\0' ); byte = s; for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) { - for ( i = 0; i < 3; i++ ) { + for ( i = 0; i < 4; i++ ) { if ( p[i] != '=' && (p[i] & 0x80 || b642nib[ p[i] & 0x7f ] > 0x3f) ) { Debug( LDAP_DEBUG_ANY,