summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/ui/ui_lib.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-04-19 11:43:07 +0000
committerguenther <guenther@openbsd.org>2014-04-19 11:43:07 +0000
commit5359f6d5b69575fb59707ce20998f2081c7d7a2f (patch)
treee9a611e854facc97a27c86e86112b35da87d7daf /lib/libssl/src/crypto/ui/ui_lib.c
parentthese strlcpy can't truncate, the copy is from a buffer to a buffer of same (diff)
downloadwireguard-openbsd-5359f6d5b69575fb59707ce20998f2081c7d7a2f.tar.xz
wireguard-openbsd-5359f6d5b69575fb59707ce20998f2081c7d7a2f.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 'lib/libssl/src/crypto/ui/ui_lib.c')
-rw-r--r--lib/libssl/src/crypto/ui/ui_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/ui/ui_lib.c b/lib/libssl/src/crypto/ui/ui_lib.c
index 58e4c5d7221..4138c86d55c 100644
--- a/lib/libssl/src/crypto/ui/ui_lib.c
+++ b/lib/libssl/src/crypto/ui/ui_lib.c
@@ -844,9 +844,9 @@ UI_set_result(UI *ui, UI_STRING *uis, const char *result)
char number1[DECIMAL_SIZE(uis->_.string_data.result_minsize) + 1];
char number2[DECIMAL_SIZE(uis->_.string_data.result_maxsize) + 1];
- (void) snprintf(number1, sizeof(number1), "%d",
+ snprintf(number1, sizeof(number1), "%d",
uis->_.string_data.result_minsize);
- (void) snprintf(number2, sizeof(number2), "%d",
+ snprintf(number2, sizeof(number2), "%d",
uis->_.string_data.result_maxsize);
if (l < uis->_.string_data.result_minsize) {