summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/asn1/asn1_par.c
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2003-04-05 11:05:07 +0000
committerho <ho@openbsd.org>2003-04-05 11:05:07 +0000
commitbbbc23545ea13dfb4f7232f1e6560dc06abb07ec (patch)
tree93116cde4935b6d01a548d8ff5fc21de660cd06b /lib/libcrypto/asn1/asn1_par.c
parentsimplify a loop, convert it to strlcat; tedu@ ok (diff)
downloadwireguard-openbsd-bbbc23545ea13dfb4f7232f1e6560dc06abb07ec.tar.xz
wireguard-openbsd-bbbc23545ea13dfb4f7232f1e6560dc06abb07ec.zip
Trivial sprintf() -> snprintf() changes. ok deraadt@
Diffstat (limited to 'lib/libcrypto/asn1/asn1_par.c')
-rw-r--r--lib/libcrypto/asn1/asn1_par.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/asn1/asn1_par.c b/lib/libcrypto/asn1/asn1_par.c
index facfdd27fca..4223c9ae458 100644
--- a/lib/libcrypto/asn1/asn1_par.c
+++ b/lib/libcrypto/asn1/asn1_par.c
@@ -88,11 +88,11 @@ static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
p=str;
if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)
- sprintf(str,"priv [ %d ] ",tag);
+ snprintf(str,sizeof str,"priv [ %d ] ",tag);
else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC)
- sprintf(str,"cont [ %d ]",tag);
+ snprintf(str,sizeof str,"cont [ %d ]",tag);
else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION)
- sprintf(str,"appl [ %d ]",tag);
+ snprintf(str,sizeof str,"appl [ %d ]",tag);
else p = ASN1_tag2str(tag);
if (p2 != NULL)