diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-04-19 11:43:08 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-04-19 11:43:08 +0000 |
commit | b121c76a6e9d1610f48fa1d06cd592e1feb2e4ed (patch) | |
tree | dc8ae33e0086a40a4b241a7d2f4cd52438465f43 /lib/libcrypto/bio/b_sock.c | |
parent | 56feac2c06a8a41409bd1a9e1331791ff28181b2 (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/bio/b_sock.c')
-rw-r--r-- | lib/libcrypto/bio/b_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c index a82c79a1b08..a6dd43f397b 100644 --- a/lib/libcrypto/bio/b_sock.c +++ b/lib/libcrypto/bio/b_sock.c @@ -543,7 +543,7 @@ BIO_accept(int sock, char **addr) goto end; } *addr = p; - (void) snprintf(*addr, nl, "%s:%s", h, s); + snprintf(*addr, nl, "%s:%s", h, s); goto end; } while (0); #endif @@ -558,7 +558,7 @@ BIO_accept(int sock, char **addr) } *addr = p; } - (void) snprintf(*addr, 24, "%d.%d.%d.%d:%d", + snprintf(*addr, 24, "%d.%d.%d.%d:%d", (unsigned char)(l >> 24L) & 0xff, (unsigned char)(l >> 16L) & 0xff, (unsigned char)(l >> 8L) & 0xff, (unsigned char)(l) & 0xff, port); |