ip_tunnel: Fix name string concatenate in __ip_tunnel_create()
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / net / ipv4 / ip_tunnel.c
index 84aa69c..c703867 100644 (file)
@@ -292,8 +292,8 @@ static struct net_device *__ip_tunnel_create(struct net *net,
                        err = -E2BIG;
                        goto failed;
                }
-               strlcpy(name, ops->kind, IFNAMSIZ);
-               strncat(name, "%d", 2);
+               strcpy(name, ops->kind);
+               strcat(name, "%d");
        }
 
        ASSERT_RTNL();