X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=crypto%2Fpcompress.c;h=7140fe70c7af04b2f544839b734de9aa5c461533;hb=3bbdd49872931b8c4282aeb1cab5af7cce2cfb0d;hp=04e083ff5373528ae4cb19263cb340461827df16;hpb=404c3bc30cb1361e1b3533643326ab472d24a618;p=cascardo%2Flinux.git diff --git a/crypto/pcompress.c b/crypto/pcompress.c index 04e083ff5373..7140fe70c7af 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)); if (nla_put(skb, CRYPTOCFGA_REPORT_COMPRESS, sizeof(struct crypto_report_comp), &rpcomp)) goto nla_put_failure;