summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/err/err.c5
-rw-r--r--lib/libssl/src/crypto/err/err.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/libcrypto/err/err.c b/lib/libcrypto/err/err.c
index 0802249da45..75a1d0181e6 100644
--- a/lib/libcrypto/err/err.c
+++ b/lib/libcrypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.39 2014/08/24 16:11:39 bcook Exp $ */
+/* $OpenBSD: err.c,v 1.40 2014/10/05 15:21:48 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1105,8 +1105,9 @@ ERR_add_error_vdata(int num, va_list args)
{
char format[129];
char *errbuf;
- format[0] = '\0';
int i;
+
+ format[0] = '\0';
for (i = 0; i < num; i++) {
if (strlcat(format, "%s", sizeof(format)) >= sizeof(format)) {
ERR_set_error_data("too many errors", ERR_TXT_STRING);
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c
index 0802249da45..75a1d0181e6 100644
--- a/lib/libssl/src/crypto/err/err.c
+++ b/lib/libssl/src/crypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.39 2014/08/24 16:11:39 bcook Exp $ */
+/* $OpenBSD: err.c,v 1.40 2014/10/05 15:21:48 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1105,8 +1105,9 @@ ERR_add_error_vdata(int num, va_list args)
{
char format[129];
char *errbuf;
- format[0] = '\0';
int i;
+
+ format[0] = '\0';
for (i = 0; i < num; i++) {
if (strlcat(format, "%s", sizeof(format)) >= sizeof(format)) {
ERR_set_error_data("too many errors", ERR_TXT_STRING);