diff options
author | ho <> | 2003-04-03 15:12:45 +0000 |
---|---|---|
committer | ho <> | 2003-04-03 15:12:45 +0000 |
commit | 6bb2106b98eb0674d6726bb6917cea8c27ed9d81 (patch) | |
tree | 88a75b48f8926e146a6634e21b828e7345486c8c /src/lib/libcrypto/asn1/t_pkey.c | |
parent | 030af986882598665482e3f4c559bdfd01f78eca (diff) | |
download | openbsd-6bb2106b98eb0674d6726bb6917cea8c27ed9d81.tar.gz openbsd-6bb2106b98eb0674d6726bb6917cea8c27ed9d81.tar.bz2 openbsd-6bb2106b98eb0674d6726bb6917cea8c27ed9d81.zip |
str{cat,cpy}/sprintf cleanup. markus@, deraadt@ ok
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; |