X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fahash.c;h=7fe175233c619a17aa035483e8a5456110c07ecc;hb=bc230ada485b9bcd42bfe17b8010ecfa21ed526b;hp=ac93c99cfae85abbc7fa433d94ef3fe80437cbb0;hpb=89307babf966165171547f105e2253dec261cfa5;p=pandora-kernel.git diff --git a/crypto/ahash.c b/crypto/ahash.c index ac93c99cfae8..7fe175233c61 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;