diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/ip_set_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ip_set_core.c b/kernel/ip_set_core.c index 178633e..21cfc0f 100644 --- a/kernel/ip_set_core.c +++ b/kernel/ip_set_core.c @@ -556,7 +556,7 @@ ip_set_create(struct sock *ctnl, struct sk_buff *skb, if (!set) return -ENOMEM; rwlock_init(&set->lock); - strncpy(set->name, name, IPSET_MAXNAMELEN); + strlcpy(set->name, name, IPSET_MAXNAMELEN); atomic_set(&set->ref, 0); set->family = family; |