From b121c76a6e9d1610f48fa1d06cd592e1feb2e4ed Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sat, 19 Apr 2014 11:43:08 +0000 Subject: We'll interpret a (void) cast on snprintf() to mean it's been verified that truncation is either desirable, not an issue, or is detected and handled later ok deraadt@ --- lib/libcrypto/asn1/asn1_par.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libcrypto/asn1/asn1_par.c') diff --git a/lib/libcrypto/asn1/asn1_par.c b/lib/libcrypto/asn1/asn1_par.c index 064b3dcb228..8085d1e5704 100644 --- a/lib/libcrypto/asn1/asn1_par.c +++ b/lib/libcrypto/asn1/asn1_par.c @@ -85,13 +85,13 @@ asn1_print_info(BIO *bp, int tag, int xclass, int constructed, p = str; if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) - (void) snprintf(str, sizeof str, "priv [ %d ] ", tag); + snprintf(str, sizeof str, "priv [ %d ] ", tag); else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC) - (void) snprintf(str, sizeof str, "cont [ %d ]", tag); + snprintf(str, sizeof str, "cont [ %d ]", tag); else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION) - (void) snprintf(str, sizeof str, "appl [ %d ]", tag); + snprintf(str, sizeof str, "appl [ %d ]", tag); else if (tag > 30) - (void) snprintf(str, sizeof str, "", tag); + snprintf(str, sizeof str, "", tag); else p = ASN1_tag2str(tag); -- cgit v1.2.3