aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/BIT_STRING.c
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-07-22 16:23:33 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-07-22 16:23:33 +0000
commit6d8518c7be259da8bcff1924202a66e903e32389 (patch)
treeeebba81b6aaa394c28c502ae29295a0db4b672e9 /skeletons/BIT_STRING.c
parent972a538670e667d40aa6edf16c64af289b876863 (diff)
only do it in case of short strings
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@65 59561ff5-6e30-0410-9f3c-9617f08c8826
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;