1 diff -Nura kismet-2009-06-R1/ifcontrol.cc kismet-2009-06-R1-nobsd/ifcontrol.cc
2 --- kismet-2009-06-R1/ifcontrol.cc 2009-04-08 16:57:44.000000000 -0300
3 +++ kismet-2009-06-R1-nobsd/ifcontrol.cc 2009-09-01 12:54:44.000000000 -0300
5 devlinklen = readlink(devlink.c_str(), devlinktarget, 511);
7 devlinktarget[devlinklen] = '\0';
8 - rind = rindex(devlinktarget, '/');
9 + rind = strrchr(devlinktarget, '/');
10 // If we found it and not at the end of the line
11 if (rind != NULL && (rind - devlinktarget) + 1 < devlinklen)
12 return string(rind + 1);
13 diff -Nura kismet-2009-06-R1/iwcontrol.cc kismet-2009-06-R1-nobsd/iwcontrol.cc
14 --- kismet-2009-06-R1/iwcontrol.cc 2009-04-20 00:22:55.000000000 -0300
15 +++ kismet-2009-06-R1-nobsd/iwcontrol.cc 2009-09-01 12:54:44.000000000 -0300
20 - bzero(buffer, sizeof(buffer));
21 + memset(buffer, 0, sizeof(buffer));
23 memset(&wrq, 0, sizeof(struct iwreq));
26 memcpy((char *) &range, buffer, sizeof(iw_range));
28 /* Zero unknown fields */
29 - bzero((char *) &range, sizeof(struct iw_range));
30 + memset((char *) &range, 0, sizeof(struct iw_range));
32 /* Initial part unmoved */
33 memcpy((char *) &range, buffer, iwr15_off(num_channels));
34 diff -Nura kismet-2009-06-R1/madwifing_control.cc kismet-2009-06-R1-nobsd/madwifing_control.cc
35 --- kismet-2009-06-R1/madwifing_control.cc 2009-03-22 23:19:19.000000000 -0300
36 +++ kismet-2009-06-R1-nobsd/madwifing_control.cc 2009-09-01 12:54:42.000000000 -0300