aboutsummaryrefslogtreecommitdiff
path: root/networking/vconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/vconfig.c')
-rw-r--r--networking/vconfig.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/networking/vconfig.c b/networking/vconfig.c
index 7b6c2fa04..3f12e7609 100644
--- a/networking/vconfig.c
+++ b/networking/vconfig.c
@@ -133,10 +133,7 @@ int vconfig_main(int argc, char **argv)
133 if (ifr.cmd == SET_VLAN_NAME_TYPE_CMD) { /* set_name_type */ 133 if (ifr.cmd == SET_VLAN_NAME_TYPE_CMD) { /* set_name_type */
134 ifr.u.name_type = *xfind_str(name_types+1, argv[1]); 134 ifr.u.name_type = *xfind_str(name_types+1, argv[1]);
135 } else { 135 } else {
136 if (strlen(argv[1]) >= IF_NAMESIZE) { 136 strncpy(ifr.device1, argv[1], IFNAMSIZ);
137 bb_error_msg_and_die("if_name >= %d chars", IF_NAMESIZE);
138 }
139 strcpy(ifr.device1, argv[1]);
140 p = argv[2]; 137 p = argv[2];
141 138
142 /* I suppose one could try to combine some of the function calls below, 139 /* I suppose one could try to combine some of the function calls below,