aboutsummaryrefslogtreecommitdiff
path: root/networking/ifconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r--networking/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index e999741d1..22b1682bc 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -313,7 +313,7 @@ int ifconfig_main(int argc, char **argv)
313 sockfd = xsocket(AF_INET, SOCK_DGRAM, 0); 313 sockfd = xsocket(AF_INET, SOCK_DGRAM, 0);
314 314
315 /* get interface name */ 315 /* get interface name */
316 strncpy(ifr.ifr_name, *argv, IFNAMSIZ); 316 strncpy_IFNAMSIZ(ifr.ifr_name, *argv);
317 317
318 /* Process the remaining arguments. */ 318 /* Process the remaining arguments. */
319 while (*++argv != (char *) NULL) { 319 while (*++argv != (char *) NULL) {