diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/t_pkey.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/t_pkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/t_pkey.c b/src/lib/libcrypto/asn1/t_pkey.c index 2d46914cb1..b3f8364012 100644 --- a/src/lib/libcrypto/asn1/t_pkey.c +++ b/src/lib/libcrypto/asn1/t_pkey.c | |||
| @@ -143,9 +143,9 @@ int RSA_print(BIO *bp, const RSA *x, int off) | |||
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | if (x->d == NULL) | 145 | if (x->d == NULL) |
| 146 | sprintf(str,"Modulus (%d bit):",BN_num_bits(x->n)); | 146 | snprintf(str,sizeof str,"Modulus (%d bit):",BN_num_bits(x->n)); |
| 147 | else | 147 | else |
| 148 | strcpy(str,"modulus:"); | 148 | strlcpy(str,"modulus:",sizeof str); |
| 149 | if (!print(bp,str,x->n,m,off)) goto err; | 149 | if (!print(bp,str,x->n,m,off)) goto err; |
| 150 | s=(x->d == NULL)?"Exponent:":"publicExponent:"; | 150 | s=(x->d == NULL)?"Exponent:":"publicExponent:"; |
| 151 | if (!print(bp,s,x->e,m,off)) goto err; | 151 | if (!print(bp,s,x->e,m,off)) goto err; |
