Skip to content

Commit

Permalink
Update crypto/pem/pem_pkey.c
Browse files Browse the repository at this point in the history
Co-authored-by: Will Childs-Klein <[email protected]>
  • Loading branch information
samuel40791765 and WillChilds-Klein authored Sep 17, 2024
1 parent 5e7b7f7 commit ba048f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/pem/pem_pkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ int PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,
return 0;
}
char pem_str[80];
BIO_snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str);
BIO_snprintf(pem_str, sizeof(pem_str), "%s PRIVATE KEY", x->ameth->pem_str);
return PEM_ASN1_write_bio(i2d_PrivateKey_void, pem_str, bp, x, enc, kstr,
klen, cb, u);
}
Expand Down

0 comments on commit ba048f1

Please sign in to comment.