patch-ifcontrol_cc 534 B

1234567891011
  1. --- kismet-2010-01-R1.orig/ifcontrol.cc Mon Aug 31 01:36:19 2009
  2. +++ kismet-2010-01-R1/ifcontrol.cc Wed Feb 17 21:59:02 2010
  3. @@ -149,7 +149,7 @@ string Linux_GetSysDrv(const char *in_dev) {
  4. devlinklen = readlink(devlink.c_str(), devlinktarget, 511);
  5. if (devlinklen > 0) {
  6. devlinktarget[devlinklen] = '\0';
  7. - rind = rindex(devlinktarget, '/');
  8. + rind = strchr(devlinktarget, '/');
  9. // If we found it and not at the end of the line
  10. if (rind != NULL && (rind - devlinktarget) + 1 < devlinklen)
  11. return string(rind + 1);