summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-05-09 20:14:00 +0000
committerRichard Levitte <levitte@openssl.org>2002-05-09 20:14:00 +0000
commit06bed643178b836c45d12d091251e24cdf9cbdf4 (patch)
tree4e62fda0e48c0803c259998c4db2284133c8871f /crypto/bio
parentc559759265640762b6cb3e66f852c544fc19292f (diff)
Make the huge buffer smaller, so the size becomes reasonable for small-stack environments.
Notified by Verdon Walker <VWalker@novell.com>
Diffstat (limited to 'crypto/bio')
-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 92f9f8f4e6..7c3c9bdf69 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;