Fixed printing.
authorPekka Riikonen <priikone@silcnet.org>
Tue, 17 Jul 2007 17:41:21 +0000 (17:41 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 17 Jul 2007 17:41:21 +0000 (17:41 +0000)
apps/asn1utils/asn1dump.c

index a5e59906895d6c795d26dd58de1c4b5dd95bfc53..30cb2b5579c53127f02091488471ccd405c50463 100644 (file)
@@ -25,10 +25,6 @@ SilcBool dec_base64 = FALSE;
 const char *asn1_tag_name(SilcAsn1Tag tag)
 {
   switch (tag) {
-  case SILC_ASN1_END:
-    return "END";
-  case SILC_ASN1_TAG_OPTS:
-    return "";
   case SILC_ASN1_TAG_CHOICE:
     return "choice";
   case SILC_ASN1_TAG_ANY:
@@ -109,7 +105,7 @@ int asn1_dump(SilcAsn1 asn1, SilcBuffer src)
   const unsigned char *rdata;
   SilcUInt32 rdata_len, len = 0;
   SilcBool rindef;
-  char indent[64];
+  char indent[256];
   int depth = 0;
 
   SILC_LOG_DEBUG(("Dumping ASN.1"));