summaryrefslogtreecommitdiff
path: root/lib/element.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-17 08:08:15 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-05-17 08:08:15 +0200
commit07a5adb87880f3fce80aa12121409bbf652f1b6d (patch)
tree8b8f7a43948a7555a7aac8c35a2aade727b492aa /lib/element.c
parent3d6a02f19ff15a38dae9686033e37499b3968256 (diff)
downloadlibtasn1-07a5adb87880f3fce80aa12121409bbf652f1b6d.tar.gz
libtasn1-07a5adb87880f3fce80aa12121409bbf652f1b6d.tar.bz2
libtasn1-07a5adb87880f3fce80aa12121409bbf652f1b6d.zip
made _asn1_ltostr() safer.
Diffstat (limited to 'lib/element.c')
-rw-r--r--lib/element.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/element.c b/lib/element.c
index 3f31aa2..d748f46 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -152,7 +152,7 @@ _asn1_append_sequence_set (asn1_node node)
n = strtol (p->name + 1, NULL, 0);
n++;
temp[0] = '?';
- _asn1_ltostr (n, temp + 1);
+ _asn1_ltostr (n, temp + 1, sizeof(temp)-1);
}
_asn1_set_name (p2, temp);
/* p2->type |= CONST_OPTION; */