summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-05-09 21:55:50 +0000
committerRichard Levitte <levitte@openssl.org>2002-05-09 21:55:50 +0000
commit8f1e8d274e6fc7eb7610fc3d787705b0245528b2 (patch)
treec4356dcaa0bf409ed9936f03c14ae8e7d4e34d56
parenta09d3490711cdb2967744b78c28ab7897ca7abd2 (diff)
Merge in recent changes from 0.9.6-stable.
-rw-r--r--crypto/bio/b_print.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c
index d7a60eceea..bbd510170b 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -762,7 +762,9 @@ int BIO_vprintf (BIO *bio, const char *format, va_list args)
{
int ret;
size_t retlen;
- MS_STATIC char hugebuf[1024*10];
+ char hugebuf[1024*2]; /* Was previously 10k, which is unreasonable
+ in small-stack environments, like threads
+ or DOS programs. */
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
char *dynbuf = NULL;