summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cversion.c
diff options
context:
space:
mode:
authorguenther <>2014-04-19 11:46:39 +0000
committerguenther <>2014-04-19 11:46:39 +0000
commitf376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0 (patch)
tree1c4f9b095801061d57e575e80f245cef8a59a27f /src/lib/libcrypto/cversion.c
parent597610ccf04bbca4e88fac7988877d0a06e02211 (diff)
downloadopenbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.gz
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.tar.bz2
openbsd-f376030ff7fe24f4ad44a56c2d8ba8796c9ab3f0.zip
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 'src/lib/libcrypto/cversion.c')
-rw-r--r--src/lib/libcrypto/cversion.c6
1 files changed, 3 insertions, 3 deletions
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)
67#ifdef DATE 67#ifdef DATE
68 static char buf[sizeof(DATE) + 11]; 68 static char buf[sizeof(DATE) + 11];
69 69
70 (void) snprintf(buf, sizeof buf, "built on: %s", DATE); 70 snprintf(buf, sizeof buf, "built on: %s", DATE);
71 return (buf); 71 return (buf);
72#else 72#else
73 return("built on: date not available"); 73 return("built on: date not available");
@@ -77,7 +77,7 @@ SSLeay_version(int t)
77#ifdef CFLAGS 77#ifdef CFLAGS
78 static char buf[sizeof(CFLAGS) + 11]; 78 static char buf[sizeof(CFLAGS) + 11];
79 79
80 (void) snprintf(buf, sizeof buf, "compiler: %s", CFLAGS); 80 snprintf(buf, sizeof buf, "compiler: %s", CFLAGS);
81 return (buf); 81 return (buf);
82#else 82#else
83 return("compiler: information not available"); 83 return("compiler: information not available");
@@ -87,7 +87,7 @@ SSLeay_version(int t)
87#ifdef PLATFORM 87#ifdef PLATFORM
88 static char buf[sizeof(PLATFORM) + 11]; 88 static char buf[sizeof(PLATFORM) + 11];
89 89
90 (void) snprintf(buf, sizeof buf, "platform: %s", PLATFORM); 90 snprintf(buf, sizeof buf, "platform: %s", PLATFORM);
91 return (buf); 91 return (buf);
92#else 92#else
93 return("platform: information not available"); 93 return("platform: information not available");