From: guenther Date: Sun, 20 Apr 2014 19:56:25 +0000 (+0000) Subject: Restore beck's rev 1.8: snprintf() was reviewed. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a1a9db1aaf71e119f511785eced43fc505997890;p=openbsd Restore beck's rev 1.8: snprintf() was reviewed. --- 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) {