diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 40893fc05926..fc4c62fddfe7 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c | |||
@@ -1154,7 +1154,7 @@ static int get_info(void __user *user, int *len, int compat) | |||
1154 | sizeof(info.underflow)); | 1154 | sizeof(info.underflow)); |
1155 | info.num_entries = private->number; | 1155 | info.num_entries = private->number; |
1156 | info.size = private->size; | 1156 | info.size = private->size; |
1157 | memcpy(info.name, name, sizeof(info.name)); | 1157 | strcpy(info.name, name); |
1158 | 1158 | ||
1159 | if (copy_to_user(user, &info, *len) != 0) | 1159 | if (copy_to_user(user, &info, *len) != 0) |
1160 | ret = -EFAULT; | 1160 | ret = -EFAULT; |