[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
A small contribution
The following patch will make sure that four characters, rathen than
only the first three, are being analysed in the transaltion to base64
(the LdR comment is disposable :-):
Index: ldap/libraries/libldif/line64.c
===================================================================
RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldif/line64.c,v
retrieving revision 1.1.3.1.14.1
diff -c -r1.1.3.1.14.1 line64.c
*** line64.c 1998/11/05 23:17:34 1.1.3.1.14.1
--- line64.c 1998/12/12 14:00:41
***************
*** 106,112 ****
stop = strchr( s, '\0' );
byte = s;
for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) {
! for ( i = 0; i < 3; i++ ) {
if ( p[i] != '=' && (p[i] & 0x80 ||
b642nib[ p[i] & 0x7f ] > 0x3f) ) {
Debug( LDAP_DEBUG_ANY,
--- 106,112 ----
stop = strchr( s, '\0' );
byte = s;
for ( p = s, *vlen = 0; p < stop; p += 4, *vlen += 3 ) {
! for ( i = 0; i < 4; i++ ) { /* LdR */
if ( p[i] != '=' && (p[i] & 0x80 ||
b642nib[ p[i] & 0x7f ] > 0x3f) ) {
Debug( LDAP_DEBUG_ANY,