- Enlarged debug buffer to facilitate long certificate values and filenames

diff --git a/library/debug.c b/library/debug.c
index 4648625..c5bfa0a 100644
--- a/library/debug.c
+++ b/library/debug.c
@@ -171,7 +171,7 @@
 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 8029bc5..83e5247 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -1402,7 +1402,7 @@
 {
     int i, n;
     char *p, *end;
-    static char buf[512];
+    static char buf[1024];
 
     p = buf;
     end = buf + sizeof( buf ) - 1;