X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=crypto%2Fpcompress.c;h=6f2a361bb03e5a46d8527916b0017038cb6faec9;hp=2e458e5482d0c5708cbab83dddaad11215c28a0e;hb=3cc0730eef779b6d7e27d6dfa5bd81f76a2baa0c;hpb=b930c26416c4ea6855726fd977145ccea9afbdda diff --git a/crypto/pcompress.c b/crypto/pcompress.c index 2e458e5482d0..6f2a361bb03e 100644 --- a/crypto/pcompress.c +++ b/crypto/pcompress.c @@ -53,8 +53,7 @@ static int crypto_pcomp_report(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_report_comp rpcomp; - snprintf(rpcomp.type, CRYPTO_MAX_ALG_NAME, "%s", "pcomp"); - + strncpy(rpcomp.type, "pcomp", sizeof(rpcomp.type)); NLA_PUT(skb, CRYPTOCFGA_REPORT_COMPRESS, sizeof(struct crypto_report_comp), &rpcomp);