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=0a9c9f4c380d57954574e8682c04b850eed7c15d;hpb=40c043b077c6e377c8440d71563c055d0c4f0f0a 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;