X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=crypto%2Fahash.c;h=793a27f2493e5287c1275df40feaca7b7b14c87e;hb=e23b62256a361611cbd45cd1456638f1a5106b5c;hp=3887856c2dd68490736eb17bca5d01eae9837aa0;hpb=6df419e45d71b8d9a0de8e92a1212bbea460f0e0;p=cascardo%2Flinux.git diff --git a/crypto/ahash.c b/crypto/ahash.c index 3887856c2dd6..793a27f2493e 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -404,7 +404,7 @@ static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_hash rhash; - snprintf(rhash.type, CRYPTO_MAX_ALG_NAME, "%s", "ahash"); + strncpy(rhash.type, "ahash", sizeof(rhash.type)); rhash.blocksize = alg->cra_blocksize; rhash.digestsize = __crypto_hash_alg_common(alg)->digestsize;