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