Fix interface name fetching.

PR:		210380
Submitted by:	allanjude
Obtained from:	OpenBSD ports
This commit is contained in:
Emanuel Haupt
2016-06-19 09:44:21 +00:00
parent f6f4ea09f1
commit e45d39f39b
2 changed files with 12 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
PORTNAME= nload
PORTVERSION= 0.7.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.roland-riegel.de/nload/ \
LOCAL/ehaupt

View 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);