diff --git a/library/debug.c b/library/debug.c index 4648625774..c5bfa0a960 100644 --- a/library/debug.c +++ b/library/debug.c @@ -171,7 +171,7 @@ void debug_print_mpi( ssl_context *ssl, int level, void debug_print_crt( ssl_context *ssl, int level, char *file, int line, char *text, x509_cert *crt ) { - char str[512], prefix[64], *p; + char str[1024], prefix[64], *p; int i = 0, maxlen = sizeof( prefix ) - 1; if( ssl->f_dbg == NULL || crt == NULL ) diff --git a/library/x509parse.c b/library/x509parse.c index 8029bc5b40..83e5247fdc 100644 --- a/library/x509parse.c +++ b/library/x509parse.c @@ -1402,7 +1402,7 @@ char *x509parse_cert_info( char *prefix, x509_cert *crt ) { int i, n; char *p, *end; - static char buf[512]; + static char buf[1024]; p = buf; end = buf + sizeof( buf ) - 1;