diff options
Diffstat (limited to 'crypto/blkcipher.c')
-rw-r--r-- | crypto/blkcipher.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index e9e7244d5ef5..a79e7e9ab86e 100644 --- a/crypto/blkcipher.c +++ b/crypto/blkcipher.c | |||
@@ -499,9 +499,9 @@ static int crypto_blkcipher_report(struct sk_buff *skb, struct crypto_alg *alg) | |||
499 | { | 499 | { |
500 | struct crypto_report_blkcipher rblkcipher; | 500 | struct crypto_report_blkcipher rblkcipher; |
501 | 501 | ||
502 | snprintf(rblkcipher.type, CRYPTO_MAX_ALG_NAME, "%s", "blkcipher"); | 502 | strncpy(rblkcipher.type, "blkcipher", sizeof(rblkcipher.type)); |
503 | snprintf(rblkcipher.geniv, CRYPTO_MAX_ALG_NAME, "%s", | 503 | strncpy(rblkcipher.geniv, alg->cra_blkcipher.geniv ?: "<default>", |
504 | alg->cra_blkcipher.geniv ?: "<default>"); | 504 | sizeof(rblkcipher.geniv)); |
505 | 505 | ||
506 | rblkcipher.blocksize = alg->cra_blocksize; | 506 | rblkcipher.blocksize = alg->cra_blocksize; |
507 | rblkcipher.min_keysize = alg->cra_blkcipher.min_keysize; | 507 | rblkcipher.min_keysize = alg->cra_blkcipher.min_keysize; |