]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - net-tools/patches/net-tools-1.60-arp_overflow.patch
4679a51675476af5505d057656cfe6a40b6abab7
[people/pmueller/ipfire-3.x.git] / net-tools / patches / net-tools-1.60-arp_overflow.patch
1 --- net-tools-1.60/arp.c.old 2005-08-03 08:23:46.000000000 +0200
2 +++ net-tools-1.60/arp.c 2005-08-03 11:02:10.000000000 +0200
3 @@ -235,7 +235,7 @@
4 struct ifreq ifr;
5 struct hwtype *xhw;
6
7 - strcpy(ifr.ifr_name, ifname);
8 + strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
9 if (ioctl(sockfd, SIOCGIFHWADDR, &ifr) < 0) {
10 fprintf(stderr, _("arp: cant get HW-Address for `%s': %s.\n"), ifname, strerror(errno));
11 return (-1);