diff options
Diffstat (limited to 'networking/libiproute/ipaddress.c')
-rw-r--r-- | networking/libiproute/ipaddress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 288dccae7..fadab6f39 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -83,7 +83,7 @@ static void print_queuelen(char *name) | |||
83 | return; | 83 | return; |
84 | 84 | ||
85 | memset(&ifr, 0, sizeof(ifr)); | 85 | memset(&ifr, 0, sizeof(ifr)); |
86 | strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)); | 86 | strncpy_IFNAMSIZ(ifr.ifr_name, name); |
87 | if (ioctl_or_warn(s, SIOCGIFTXQLEN, &ifr) < 0) { | 87 | if (ioctl_or_warn(s, SIOCGIFTXQLEN, &ifr) < 0) { |
88 | close(s); | 88 | close(s); |
89 | return; | 89 | return; |