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/cversion.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/cversion.c') diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c index 7ecfaf9f2f..326216d084 100644 --- a/src/lib/libcrypto/cversion.c +++ b/src/lib/libcrypto/cversion.c @@ -67,7 +67,7 @@ SSLeay_version(int t) #ifdef DATE static char buf[sizeof(DATE) + 11]; - (void) snprintf(buf, sizeof buf, "built on: %s", DATE); + snprintf(buf, sizeof buf, "built on: %s", DATE); return (buf); #else return("built on: date not available"); @@ -77,7 +77,7 @@ SSLeay_version(int t) #ifdef CFLAGS static char buf[sizeof(CFLAGS) + 11]; - (void) snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); + snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); return (buf); #else return("compiler: information not available"); @@ -87,7 +87,7 @@ SSLeay_version(int t) #ifdef PLATFORM static char buf[sizeof(PLATFORM) + 11]; - (void) snprintf(buf, sizeof buf, "platform: %s", PLATFORM); + snprintf(buf, sizeof buf, "platform: %s", PLATFORM); return (buf); #else return("platform: information not available"); -- cgit v1.2.3-55-g6feb