Commit 4a660bdd authored by Lev Walkin's avatar Lev Walkin

only do it in case of short strings

parent ab42ef9f
......@@ -78,7 +78,7 @@ BIT_STRING_print(asn1_TYPE_descriptor_t *td, const void *sptr, int ilevel,
* Hexadecimal dump.
*/
for(buf++; buf < end; buf++) {
if(((buf - st->buf) - 1) % 16 == 0) {
if(((buf - st->buf) - 1) % 16 == 0 && (st->size > 16)) {
int i;
/* Indentation */
if(cb("\n", 1, app_key)) return -1;
......
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