]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - net-tools/patches/net-tools-1.60-nameif_strncpy.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / net-tools / patches / net-tools-1.60-nameif_strncpy.patch
1 --- net-tools-1.60/nameif.c.ncpy 2006-10-03 14:24:21.000000000 +0200
2 +++ net-tools-1.60/nameif.c 2006-10-03 14:22:43.000000000 +0200
3 @@ -100,8 +100,8 @@
4 struct ifreq ifr;
5 opensock();
6 memset(&ifr,0,sizeof(struct ifreq));
7 - strcpy(ifr.ifr_name, oldname);
8 - strcpy(ifr.ifr_newname, newname);
9 + strncpy(ifr.ifr_name, oldname, IF_NAMESIZE);
10 + strncpy(ifr.ifr_newname, newname, IF_NAMESIZE);
11 return ioctl(ctl_sk, SIOCSIFNAME, &ifr);
12 }
13