diff options
| author | guenther <> | 2014-04-19 11:46:39 +0000 |
|---|---|---|
| committer | guenther <> | 2014-04-19 11:46:39 +0000 |
| commit | 15e0442b8cfbbc095af4db97db7cd2b6d8dc23d0 (patch) | |
| tree | 1c4f9b095801061d57e575e80f245cef8a59a27f /src/lib/libcrypto/cversion.c | |
| parent | ac3cb5c172d4edffffbf917c401f9b4bfecea55f (diff) | |
| download | openbsd-15e0442b8cfbbc095af4db97db7cd2b6d8dc23d0.tar.gz openbsd-15e0442b8cfbbc095af4db97db7cd2b6d8dc23d0.tar.bz2 openbsd-15e0442b8cfbbc095af4db97db7cd2b6d8dc23d0.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 '')
| -rw-r--r-- | src/lib/libcrypto/cversion.c | 6 |
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"); |
