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=9bc37ed5b25642391d5c39e9723c8cda1f5ccf39;hpb=3b9abc7e48561b0b140ee267e190bc1031f82ff3;ds=sidebyside 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;