summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-04-20 17:01:36 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-04-20 17:01:36 +0000
commitaf3f97c51a254607b748f165f0a174c8dfa6e60d (patch)
tree642ec3ac5ad79e183a4b279e2c7b7d05bcf4d3c5 /lib
parentd913983159a000932c1901c7c3215bdd7cec5e16 (diff)
Restore beck's rev 1.9: snprintf() was reviewed
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/err/err_prn.c2
1 files changed, 1 insertions, 1 deletions
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 */