Restore beck's rev 1.8: snprintf() was reviewed.
authorguenther <guenther@openbsd.org>
Sun, 20 Apr 2014 19:56:25 +0000 (19:56 +0000)
committerguenther <guenther@openbsd.org>
Sun, 20 Apr 2014 19:56:25 +0000 (19:56 +0000)
lib/libcrypto/ui/ui_lib.c
lib/libssl/src/crypto/ui/ui_lib.c

index 4138c86..58e4c5d 100644 (file)
@@ -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) {
index 4138c86..58e4c5d 100644 (file)
@@ -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) {