X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=crypto%2Frng.c;h=1966c1d0d7f00ff9cd6635d11d4780bf09cbdaf8;hp=64f864fa8043740f50bc186e58a2ee37d8a1499a;hb=c9dc564e3240cbfa4ec46ff02f33fa5a1b93e468;hpb=fb38f9b8fe98a9c1f6b1e57d1b08b1102b293929 diff --git a/crypto/rng.c b/crypto/rng.c index 64f864fa8043..1966c1d0d7f0 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;