mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
Apply Ken McGarrahan's ldif padding fix.
This commit is contained in:
parent
cf50d9436c
commit
ded2194df7
1 changed files with 6 additions and 6 deletions
|
|
@ -276,12 +276,12 @@ put_type_and_value( char **out, char *t, char *val, int vlen )
|
|||
len = 1;
|
||||
}
|
||||
|
||||
/* get b64 digit from low order 6 bits */
|
||||
*(*out)++ = nib2b64[ (bits & 0xfc0000L) >> 18 ];
|
||||
}
|
||||
|
||||
for ( ; pad > 0; pad-- ) {
|
||||
*(*out - pad) = '=';
|
||||
if( i + pad < 4 ) {
|
||||
/* get b64 digit from low order 6 bits */
|
||||
*(*out)++ = nib2b64[ (bits & 0xfc0000L) >> 18 ];
|
||||
} else {
|
||||
*(*out)++ = '=';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue