Commit ded2194d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Apply Ken McGarrahan's ldif padding fix.

parent cf50d943
......@@ -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)++ = '=';
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment