git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ethtool: Use kcalloc instead of kmalloc for ethtool_get_strings
[pandora-kernel.git]
/
crypto
/
pcompress.c
diff --git
a/crypto/pcompress.c
b/crypto/pcompress.c
index
2e458e5
..
6f2a361
100644
(file)
--- 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);