jer 14/07/19 12:26:37
Modified: airtraf-1.1.patch
Added:airtraf-1.1-off-by-one.patch
Log:
Fix an off-by-one.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key
A792A613)
Revision ChangesPath
1.2 net-wireless/airtraf/files/airtraf-1.1.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1.patch?rev=1.2&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1.patch?rev=1.2&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1.patch?r1=1.1&r2=1.2
Index: airtraf-1.1.patch
===
RCS file: /var/cvsroot/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- airtraf-1.1.patch 17 Sep 2010 03:23:44 - 1.1
+++ airtraf-1.1.patch 19 Jul 2014 12:26:37 - 1.2
@@ -1,5 +1,5 @@
a/airtraf-1.1/src/sniffd/autoconfig.c 2003-01-24 10:11:36.0
+0930
-+++ b/airtraf-1.1/src/sniffd/autoconfig.c 2005-01-12 19:23:16.481439336
+0930
+--- a/src/sniffd/autoconfig.c 2003-01-24 10:11:36.0 +0930
b/src/sniffd/autoconfig.c 2005-01-12 19:23:16.481439336 +0930
@@ -360,7 +360,7 @@
int check_drv_compat(char * drvname, int * id)
{
@@ -26,8 +26,8 @@
}
/* update flag take off PROMISC */
a/airtraf-1.1/src/sniffd/gui_channel_scan.c2003-01-22
13:05:01.0 +0930
-+++ b/airtraf-1.1/src/sniffd/gui_channel_scan.c2005-01-12
19:21:33.135876552 +0930
+--- a/gsrc/sniffd/gui_channel_scan.c 2003-01-22 13:05:01.0 +0930
b/gsrc/sniffd/gui_channel_scan.c 2005-01-12 19:21:33.135876552 +0930
@@ -384,7 +384,7 @@
if (!beep()) flash();
wattrset(statuswin, STDATTR);
@@ -37,8 +37,8 @@
hexdump((__u8*)&ap->bssid,6), ap->channel);
print_status_msg(statuswin, location, message);
ap->status = AP_STATUS_ACTIVE;
a/airtraf-1.1/src/sniffd/server.c 2003-01-22 13:05:01.0 +0930
-+++ b/airtraf-1.1/src/sniffd/server.c 2005-01-12 19:21:33.135876552 +0930
+--- a/gsrc/sniffd/server.c 2003-01-22 13:05:01.0 +0930
b/gsrc/sniffd/server.c 2005-01-12 19:21:33.135876552 +0930
@@ -57,7 +57,7 @@
int process_command(int, char *);
1.1 net-wireless/airtraf/files/airtraf-1.1-off-by-one.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1-off-by-one.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/airtraf/files/airtraf-1.1-off-by-one.patch?rev=1.1&content-type=text/plain
Index: airtraf-1.1-off-by-one.patch
===
--- a/src/sniffd/autoconfig.c
+++ b/src/sniffd/autoconfig.c
@@ -68,7 +68,7 @@
struct ifreq ifr;
strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
- ifr.ifr_name[IFNAMSIZ] = '\0';
+ ifr.ifr_name[IFNAMSIZ -1] = '\0';
if (ioctl(skfd, SIOCGIFFLAGS, &ifr) < 0){
return (-1);
}
@@ -89,7 +89,7 @@
struct ifreq ifr;
strncpy(ifr.ifr_name, ifname, IFNAMSIZ);
- ifr.ifr_name[IFNAMSIZ] = '\0';
+ ifr.ifr_name[IFNAMSIZ -1] = '\0';
if (ioctl(skfd, SIOCGIFFLAGS, &ifr) < 0){
return (-1);
}
@@ -129,7 +129,7 @@
{
/* Set device name */
strncpy(pwrq->ifr_name, ifname, IFNAMSIZ);
- pwrq->ifr_name[IFNAMSIZ] = '\0';
+ pwrq->ifr_name[IFNAMSIZ -1] = '\0';
/* Do the request */
return(ioctl(skfd, request, pwrq));