From a1a9db1aaf71e119f511785eced43fc505997890 Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 20 Apr 2014 19:56:25 +0000 Subject: [PATCH] Restore beck's rev 1.8: snprintf() was reviewed. --- lib/libcrypto/ui/ui_lib.c | 4 ++-- lib/libssl/src/crypto/ui/ui_lib.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/ui/ui_lib.c b/lib/libcrypto/ui/ui_lib.c index 4138c86d55c..58e4c5d7221 100644 --- a/lib/libcrypto/ui/ui_lib.c +++ b/lib/libcrypto/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]; - snprintf(number1, sizeof(number1), "%d", + (void) snprintf(number1, sizeof(number1), "%d", uis->_.string_data.result_minsize); - snprintf(number2, sizeof(number2), "%d", + (void) snprintf(number2, sizeof(number2), "%d", uis->_.string_data.result_maxsize); if (l < uis->_.string_data.result_minsize) { diff --git a/lib/libssl/src/crypto/ui/ui_lib.c b/lib/libssl/src/crypto/ui/ui_lib.c index 4138c86d55c..58e4c5d7221 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]; - snprintf(number1, sizeof(number1), "%d", + (void) snprintf(number1, sizeof(number1), "%d", uis->_.string_data.result_minsize); - snprintf(number2, sizeof(number2), "%d", + (void) snprintf(number2, sizeof(number2), "%d", uis->_.string_data.result_maxsize); if (l < uis->_.string_data.result_minsize) { -- 2.20.1