diff options
author | Richard Levitte <levitte@openssl.org> | 2002-05-09 20:14:00 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-05-09 20:14:00 +0000 |
commit | 06bed643178b836c45d12d091251e24cdf9cbdf4 (patch) | |
tree | 4e62fda0e48c0803c259998c4db2284133c8871f /crypto/bio/b_print.c | |
parent | c559759265640762b6cb3e66f852c544fc19292f (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/b_print.c')
-rw-r--r-- | crypto/bio/b_print.c | 4 |
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; |