aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/BIT_STRING.c
diff options
context:
space:
mode:
Diffstat (limited to 'skeletons/BIT_STRING.c')
-rw-r--r--skeletons/BIT_STRING.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/BIT_STRING.c b/skeletons/BIT_STRING.c
index 4914b207..7727d78c 100644
--- a/skeletons/BIT_STRING.c
+++ b/skeletons/BIT_STRING.c
@@ -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;