diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c
index c421934def947a179c7a0e3fc0aeb96568f6090c..a00f0925d242883f7149d8532f11c56527804fc0 100644
--- a/crypto/bio/b_print.c
+++ b/crypto/bio/b_print.c
@@ -827,7 +827,7 @@ int BIO_vprintf (BIO *bio, const char *format, va_list args)
 #ifdef USE_ALLOCATING_PRINT
 	char *hugebuf;
 #else
-	MS_STATIC char hugebuf[1024*2];
+	MS_STATIC char hugebuf[1024*10];
 #endif
 
 #ifndef USE_ALLOCATING_PRINT