X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Frng.c;h=1966c1d0d7f00ff9cd6635d11d4780bf09cbdaf8;hb=fd15ae01c5b1c73f2c992afd219bd18856ae3e48;hp=64f864fa8043740f50bc186e58a2ee37d8a1499a;hpb=827fa4c762fa81fbfcd262505588feeeae7a3b66;p=pandora-kernel.git 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;