X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=crypto%2Frng.c;h=e0a25c2456de4f7f92fa4ac1cc4daf9c48b5b209;hb=9a5467bf7b6e9e02ec9c3da4e23747c05faeaac6;hp=f3b7894dec00ee5207642f7ff95cbf8ef6aaeb2f;hpb=eea5b5510fc5545d15b69da8e485a7424ae388cf;p=~andy%2Flinux diff --git a/crypto/rng.c b/crypto/rng.c index f3b7894dec0..e0a25c2456d 100644 --- a/crypto/rng.c +++ b/crypto/rng.c @@ -65,7 +65,7 @@ static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_rng rrng; - snprintf(rrng.type, CRYPTO_MAX_ALG_NAME, "%s", "rng"); + strncpy(rrng.type, "rng", sizeof(rrng.type)); rrng.seedsize = alg->cra_rng.seedsize;