Fix interface name fetching.
PR: 210380 Submitted by: allanjude Obtained from: OpenBSD ports
This commit is contained in:
parent
f6f4ea09f1
commit
e45d39f39b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=417107
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= nload
|
||||
PORTVERSION= 0.7.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.roland-riegel.de/nload/ \
|
||||
LOCAL/ehaupt
|
||||
|
11
net/nload/files/patch-src_devreader-bsd.cpp
Normal file
11
net/nload/files/patch-src_devreader-bsd.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/devreader-bsd.cpp.orig 2011-06-12 10:01:11 UTC
|
||||
+++ src/devreader-bsd.cpp
|
||||
@@ -91,7 +91,7 @@ list<string> DevReaderBsd::findAllDevice
|
||||
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);
|
Loading…
Reference in New Issue
Block a user