From f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sat, 19 Apr 2014 11:46:39 +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@ --- src/lib/libcrypto/err/err.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/err/err.c') diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index 0672477cc8..c4192c6bfa 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c @@ -842,13 +842,13 @@ void ERR_error_string_n(unsigned long e, char *buf, size_t len) rs=ERR_reason_error_string(e); if (ls == NULL) - (void) snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); + snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); if (fs == NULL) - (void) snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f); + snprintf(fsbuf, sizeof(fsbuf), "func(%lu)", f); if (rs == NULL) - (void) snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); + snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); - (void) snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf, + snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf, fs?fs:fsbuf, rs?rs:rsbuf); if (strlen(buf) == len-1) { -- cgit v1.2.3-55-g6feb