patch-ifcontrol_cc 552 B

1234567891011
  1. --- kismet-2010-01-R1.orig/ifcontrol.cc 2009-08-31 01:36:19.000000000 +0200
  2. +++ kismet-2010-01-R1/ifcontrol.cc 2010-02-14 19:59:51.000000000 +0100
  3. @@ -149,7 +149,7 @@ string Linux_GetSysDrv(const char *in_de
  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);