summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-04-20 17:01:35 +0000
committerguenther <guenther@openbsd.org>2014-04-20 17:01:35 +0000
commit8a5f6dd3cc544d9b8f2e3c9ccba855fc8fcf6efc (patch)
treec72bf737bd46f5ff7d7d88dc9cecaf37ed9b7d7f
parentMove session params initialization to when we start a session and not (diff)
downloadwireguard-openbsd-8a5f6dd3cc544d9b8f2e3c9ccba855fc8fcf6efc.tar.xz
wireguard-openbsd-8a5f6dd3cc544d9b8f2e3c9ccba855fc8fcf6efc.zip
Restore beck's rev 1.9: snprintf() was reviewed
-rw-r--r--lib/libcrypto/err/err_prn.c2
-rw-r--r--lib/libssl/src/crypto/err/err_prn.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/err/err_prn.c b/lib/libcrypto/err/err_prn.c
index be4d5de2d24..7374c0abe79 100644
--- a/lib/libcrypto/err/err_prn.c
+++ b/lib/libcrypto/err/err_prn.c
@@ -79,7 +79,7 @@ void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
while ((l=ERR_get_error_line_data(&file,&line,&data,&flags)) != 0)
{
ERR_error_string_n(l, buf, sizeof buf);
- snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, buf,
+ (void) snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, buf,
file, line, (flags & ERR_TXT_STRING) ? data : "");
if (cb(buf2, strlen(buf2), u) <= 0)
break; /* abort outputting the error report */
diff --git a/lib/libssl/src/crypto/err/err_prn.c b/lib/libssl/src/crypto/err/err_prn.c
index be4d5de2d24..7374c0abe79 100644
--- a/lib/libssl/src/crypto/err/err_prn.c
+++ b/lib/libssl/src/crypto/err/err_prn.c
@@ -79,7 +79,7 @@ void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
while ((l=ERR_get_error_line_data(&file,&line,&data,&flags)) != 0)
{
ERR_error_string_n(l, buf, sizeof buf);
- snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, buf,
+ (void) snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, buf,
file, line, (flags & ERR_TXT_STRING) ? data : "");
if (cb(buf2, strlen(buf2), u) <= 0)
break; /* abort outputting the error report */