]> git.sur5r.net Git - openldap/commitdiff
Make sure that four characters, rather than only the first three,
authorKurt Zeilenga <kurt@openldap.org>
Mon, 14 Dec 1998 04:21:04 +0000 (04:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 14 Dec 1998 04:21:04 +0000 (04:21 +0000)
are being analysed in the transaltion to base64.
From: Lucio de Re <lucio@proxima.alt.za>

libraries/libldif/line64.c

index 9c91a4153001b83d377198fe751be0724c293417..d77765167bbcf38c949f7def2c8a1501496f49f4 100644 (file)
@@ -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,