summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509v3
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-04-19 11:43:08 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-04-19 11:43:08 +0000
commitb121c76a6e9d1610f48fa1d06cd592e1feb2e4ed (patch)
treedc8ae33e0086a40a4b241a7d2f4cd52438465f43 /lib/libcrypto/x509v3
parent56feac2c06a8a41409bd1a9e1331791ff28181b2 (diff)
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@
Diffstat (limited to 'lib/libcrypto/x509v3')
-rw-r--r--lib/libcrypto/x509v3/v3_alt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/x509v3/v3_alt.c b/lib/libcrypto/x509v3/v3_alt.c
index 636677df94a..95b1fa4c975 100644
--- a/lib/libcrypto/x509v3/v3_alt.c
+++ b/lib/libcrypto/x509v3/v3_alt.c
@@ -143,14 +143,14 @@ STACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method,
case GEN_IPADD:
p = gen->d.ip->data;
if(gen->d.ip->length == 4)
- (void) snprintf(oline, sizeof oline,
+ snprintf(oline, sizeof oline,
"%d.%d.%d.%d", p[0], p[1], p[2], p[3]);
else if(gen->d.ip->length == 16)
{
oline[0] = 0;
for (i = 0; i < 8; i++)
{
- (void) snprintf(htmp, sizeof htmp,
+ snprintf(htmp, sizeof htmp,
"%X", p[0] << 8 | p[1]);
p += 2;
strlcat(oline, htmp, sizeof(oline));