diff options
Diffstat (limited to 'lib/libcrypto/pkcs7/bio_ber.c')
-rw-r--r-- | lib/libcrypto/pkcs7/bio_ber.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypto/pkcs7/bio_ber.c b/lib/libcrypto/pkcs7/bio_ber.c index 04dc5c9b966..d787495a218 100644 --- a/lib/libcrypto/pkcs7/bio_ber.c +++ b/lib/libcrypto/pkcs7/bio_ber.c @@ -155,7 +155,6 @@ static int ber_free(BIO *a) int bio_ber_get_header(BIO *bio, BIO_BER_CTX *ctx) { - char buf[64]; int i,j,n; int ret; unsigned char *p; @@ -215,8 +214,7 @@ int bio_ber_get_header(BIO *bio, BIO_BER_CTX *ctx) if ((ctx->tag >= 0) && (ctx->tag != tag)) { BIOerr(BIO_F_BIO_BER_GET_HEADER,BIO_R_TAG_MISMATCH); - sprintf(buf,"tag=%d, got %d",ctx->tag,tag); - ERR_add_error_data(1,buf); + ERR_asprintf_error_data("tag=%d, got %d", ctx->tag, tag); return(-1); } if (ret & 0x01) |