openbsd-ports/net/nload/patches/patch-src_devreader-bsd_cpp
sthen 940a0e8ed5 update to nload 0.7.4, from Brad, maintainer had similar diff
additional tweaks from me:
- fix docs/Makefile.in to allow SEPARATE_BUILD
- no need to mirror, upstream has old versions now
- add a patch from upstream to avoid junk after the interface name
2012-02-19 14:03:37 +00:00

16 lines
539 B
Plaintext

$OpenBSD: patch-src_devreader-bsd_cpp,v 1.1 2012/02/19 14:03:37 sthen Exp $
Don't include garbage after the interface name. From upstream.
--- src/devreader-bsd.cpp.orig Sun Feb 19 13:57:42 2012
+++ src/devreader-bsd.cpp Sun Feb 19 13:57:54 2012
@@ -91,7 +91,7 @@ list<string> DevReaderBsd::findAllDevices()
if(sdl->sdl_family != AF_LINK)
continue;
- interfaceNames.push_back(string(sdl->sdl_data));
+ interfaceNames.push_back(string(sdl->sdl_data, sdl->sdl_nlen));
}
free(buf);