SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,13 @@
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);