name has size of ASN1_MAX_NAME_SIZE+1 to allow for a terminating null.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 14 Sep 2012 16:08:10 +0000 (18:08 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 14 Sep 2012 16:08:10 +0000 (18:08 +0200)
lib/int.h

index 65e3c0e..fad4dbe 100644 (file)
--- a/lib/int.h
+++ b/lib/int.h
@@ -46,7 +46,7 @@
 struct node_asn_struct
 {
   /* public fields: */
-  char name[ASN1_MAX_NAME_SIZE];                       /* Node name */
+  char name[ASN1_MAX_NAME_SIZE+1];                     /* Node name */
   unsigned int type;           /* Node type */
   unsigned char *value;                /* Node value */
   int value_len;