]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - crypto/shash.c
powerpc: Fix compile of sha1-powerpc-asm.S on 32-bit
[karo-tx-linux.git] / crypto / shash.c
index f426330f101755493a529d4dd8f9bcd900b51f73..929058a68561264c389719e26a3d22704bbbe18e 100644 (file)
@@ -530,7 +530,8 @@ static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg)
        struct crypto_report_hash rhash;
        struct shash_alg *salg = __crypto_shash_alg(alg);
 
-       snprintf(rhash.type, CRYPTO_MAX_ALG_NAME, "%s", "shash");
+       strncpy(rhash.type, "shash", sizeof(rhash.type));
+
        rhash.blocksize = alg->cra_blocksize;
        rhash.digestsize = salg->digestsize;