From 07a5adb87880f3fce80aa12121409bbf652f1b6d Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 17 May 2014 08:08:15 +0200 Subject: made _asn1_ltostr() safer. --- lib/element.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/element.c') 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; */ -- cgit v1.2.3