- Added prelimenary CRL parsing and info support

diff --git a/library/debug.c b/library/debug.c
index c5bfa0a..cd7664d 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[1024], prefix[64], *p;
+    char str[1024], prefix[64];
     int i = 0, maxlen = sizeof( prefix ) - 1;
 
     if( ssl->f_dbg == NULL || crt == NULL )
@@ -183,10 +183,11 @@
 
     while( crt != NULL && crt->next != NULL )
     {
-        p = x509parse_cert_info( prefix, crt );
+        char buf[1024];
+        x509parse_cert_info( buf, sizeof( buf ) - 1, prefix, crt );
 
         snprintf( str, maxlen, "%s(%04d): %s #%d:\n%s",
-                  file, line, text, ++i, p );
+                  file, line, text, ++i, buf );
 
         str[maxlen] = '\0';
         ssl->f_dbg( ssl->p_dbg, level, str );