diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-02-23 14:23:03 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-02-23 14:23:03 +0800 |
commit | 9a86c86aff1033c5af7b40fc4d434140a785ef87 (patch) | |
tree | 70bc5b3310de8250549d6bb51115a5c0d4815024 /devel/libgtop2 | |
parent | a7eeacca61584e34b5d230a08c8fee1443914696 (diff) | |
download | marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.tar marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.tar.gz marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.tar.bz2 marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.tar.lz marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.tar.xz marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.tar.zst marcuscom-ports-9a86c86aff1033c5af7b40fc4d434140a785ef87.zip |
Be sure to increment our if_nameindex pointer or we'll end up in a big
fat infinite loop eating four bytes of memory at a time.
Reported by: mezz
Big pointy hat to: marcus
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3697 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/libgtop2')
-rw-r--r-- | devel/libgtop2/Makefile | 1 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile index 095abc1ee..de8824582 100644 --- a/devel/libgtop2/Makefile +++ b/devel/libgtop2/Makefile @@ -7,6 +7,7 @@ PORTNAME= libgtop2 PORTVERSION= 2.9.91 +PORTREVISION= 1 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.9 diff --git a/devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c b/devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c new file mode 100644 index 000000000..aca828d4d --- /dev/null +++ b/devel/libgtop2/files/patch-sysdeps_freebsd_netlist.c @@ -0,0 +1,10 @@ +--- sysdeps/freebsd/netlist.c.orig Wed Feb 23 01:20:33 2005 ++++ sysdeps/freebsd/netlist.c Wed Feb 23 01:20:44 2005 +@@ -50,6 +50,7 @@ + while(ifs && ifs->if_name) { + g_ptr_array_add(devices, g_strdup(ifs->if_name)); + buf->number++; ++ ifs++; + } + + if_freenameindex(ifstart); |