diff options
Diffstat (limited to 'crypto/shash.c')
-rw-r--r-- | crypto/shash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index f426330f1017..929058a68561 100644 --- a/crypto/shash.c +++ b/crypto/shash.c | |||
@@ -530,7 +530,8 @@ static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) | |||
530 | struct crypto_report_hash rhash; | 530 | struct crypto_report_hash rhash; |
531 | struct shash_alg *salg = __crypto_shash_alg(alg); | 531 | struct shash_alg *salg = __crypto_shash_alg(alg); |
532 | 532 | ||
533 | snprintf(rhash.type, CRYPTO_MAX_ALG_NAME, "%s", "shash"); | 533 | strncpy(rhash.type, "shash", sizeof(rhash.type)); |
534 | |||
534 | rhash.blocksize = alg->cra_blocksize; | 535 | rhash.blocksize = alg->cra_blocksize; |
535 | rhash.digestsize = salg->digestsize; | 536 | rhash.digestsize = salg->digestsize; |
536 | 537 | ||