diff options
Diffstat (limited to 'crypto/err/err_prn.c')
| -rw-r--r-- | crypto/err/err_prn.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/err/err_prn.c b/crypto/err/err_prn.c index 6f60b016c32..0999ff214bf 100644 --- a/crypto/err/err_prn.c +++ b/crypto/err/err_prn.c @@ -76,8 +76,7 @@ void ERR_print_errors_fp(FILE *fp) es=CRYPTO_thread_id(); while ((l=ERR_get_error_line_data(&file,&line,&data,&flags)) != 0) { - ERR_error_string_n(l, buf, sizeof buf); - fprintf(fp,"%lu:%s:%s:%d:%s\n",es,buf, + fprintf(fp,"%lu:%s:%s:%d:%s\n",es,ERR_error_string(l,buf), file,line,(flags&ERR_TXT_STRING)?data:""); } } @@ -95,8 +94,7 @@ void ERR_print_errors(BIO *bp) es=CRYPTO_thread_id(); while ((l=ERR_get_error_line_data(&file,&line,&data,&flags)) != 0) { - ERR_error_string_n(l, buf, sizeof buf); - sprintf(buf2,"%lu:%s:%s:%d:",es,buf, + sprintf(buf2,"%lu:%s:%s:%d:",es,ERR_error_string(l,buf), file,line); BIO_write(bp,buf2,strlen(buf2)); if (flags & ERR_TXT_STRING) |
