/[packages]/cauldron/net-tools/current/SOURCES/net-tools-1.60-arp_overflow.patch
ViewVC logotype

Contents of /cauldron/net-tools/current/SOURCES/net-tools-1.60-arp_overflow.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (show annotations) (download)
Fri Jan 7 23:30:25 2011 UTC (13 years, 3 months ago) by tmb
File size: 434 byte(s)
imported package net-tools
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);

  ViewVC Help
Powered by ViewVC 1.1.30